From cf5f2e0ae4e6904dc5cdd7c1eb9acb129d722036 Mon Sep 17 00:00:00 2001 From: Duncan Frost Date: Fri, 27 Feb 2015 23:00:29 +0000 Subject: [PATCH] Fix cursor not changing when switching between scenery and other windows --- src/windows/scenery.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/windows/scenery.c b/src/windows/scenery.c index 632b7d5fa4..75764e60ea 100644 --- a/src/windows/scenery.c +++ b/src/windows/scenery.c @@ -690,9 +690,11 @@ static void window_scenery_update(rct_window *w) gfx_invalidate_screen(); - if (!window_scenery_is_scenery_tool_active()) + if (!window_scenery_is_scenery_tool_active()){ window_close(w); - + return; + } + if (window_scenery_is_repaint_scenery_tool_on == 1) { // the repaint scenery tool is active RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_TOOL, uint8) = 0x17; } else {