mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 23:06:18 +00:00
:P
This commit is contained in:
parent
9e990680dc
commit
2d3d32d257
2 changed files with 4 additions and 0 deletions
|
|
@ -225,6 +225,7 @@ class FastTravel
|
||||||
def update
|
def update
|
||||||
zone = ZONES[$game_fasttravel.zone]
|
zone = ZONES[$game_fasttravel.zone]
|
||||||
|
|
||||||
|
zone = zone == nil ? Zone.new("", {}, {}) : zone
|
||||||
if zone.locations != nil && !@legacy_ui
|
if zone.locations != nil && !@legacy_ui
|
||||||
@arrows_timer += 1
|
@arrows_timer += 1
|
||||||
if @arrows_timer >= 30
|
if @arrows_timer >= 30
|
||||||
|
|
|
||||||
|
|
@ -433,6 +433,9 @@ void EventThread::process(RGSSThreadData &rtData){
|
||||||
// more mouse support for sunshine :3c
|
// more mouse support for sunshine :3c
|
||||||
case SDL_EVENT_MOUSE_WHEEL:
|
case SDL_EVENT_MOUSE_WHEEL:
|
||||||
{
|
{
|
||||||
|
if (event.window.windowID != SDL_GetWindowID(rtData.window))
|
||||||
|
break;
|
||||||
|
|
||||||
mouseState.wheelFlipped = event.wheel.direction == SDL_MOUSEWHEEL_FLIPPED;
|
mouseState.wheelFlipped = event.wheel.direction == SDL_MOUSEWHEEL_FLIPPED;
|
||||||
mouseState.wheelX += event.wheel.x;
|
mouseState.wheelX += event.wheel.x;
|
||||||
mouseState.wheelY += event.wheel.y;
|
mouseState.wheelY += event.wheel.y;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue