1
0
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:
Tulio Leao
2019-12-17 23:32:34 -03:00
parent 2cd3add373
commit 972a8735e8

View File

@@ -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)
{