mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Fix arithmetic error in Scenery::window_scenery_update()
This commit is contained in:
@@ -751,7 +751,7 @@ static void window_scenery_update(rct_window* w)
|
||||
rct_window* other = window_find_from_point(state->position);
|
||||
if (other == w)
|
||||
{
|
||||
ScreenCoordsXY window = state->position - ScreenCoordsXY{ w->x + 26, w->y };
|
||||
ScreenCoordsXY window = state->position - ScreenCoordsXY{ w->x - 26, w->y };
|
||||
|
||||
if (window.y < 44 || window.x <= w->width)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user