From ce06ee8681b05092c49663aa55bc497c0f6bd209 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Thu, 5 Nov 2015 18:02:21 +0000 Subject: [PATCH] Fix #1523. Water tool selection now the correct colour. --- src/windows/top_toolbar.c | 4 ++-- src/windows/track_place.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/windows/top_toolbar.c b/src/windows/top_toolbar.c index 154019aabe..7366514a26 100644 --- a/src/windows/top_toolbar.c +++ b/src/windows/top_toolbar.c @@ -2007,8 +2007,8 @@ void top_toolbar_tool_update_water(sint16 x, sint16 y){ state_changed++; } - if (RCT2_GLOBAL(RCT2_ADDRESS_MAP_SELECTION_TYPE, uint16) != 4){ - RCT2_GLOBAL(RCT2_ADDRESS_MAP_SELECTION_TYPE, uint16) = 4; + if (RCT2_GLOBAL(RCT2_ADDRESS_MAP_SELECTION_TYPE, uint16) != 5){ + RCT2_GLOBAL(RCT2_ADDRESS_MAP_SELECTION_TYPE, uint16) = 5; state_changed++; } diff --git a/src/windows/track_place.c b/src/windows/track_place.c index 12eddb7ee8..c879b4907a 100644 --- a/src/windows/track_place.c +++ b/src/windows/track_place.c @@ -393,7 +393,7 @@ void window_track_place_open() show_gridlines(); _window_track_place_last_cost = MONEY32_UNDEFINED; _window_track_place_last_x = 0xFFFF; - RCT2_GLOBAL(RCT2_ADDRESS_TRACK_PREVIEW_ROTATION, uint8) = (-get_current_rotation() + 2) & 3; + RCT2_GLOBAL(RCT2_ADDRESS_TRACK_PREVIEW_ROTATION, uint8) = (2 - get_current_rotation()) & 3; window_track_place_draw_mini_preview(); }