1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 14:02:59 +01:00

Close #13625: Refactor TOOL_IDX to use strong enum

This commit is contained in:
Tulio Leao
2020-12-23 01:11:15 -03:00
parent d6ebdded6b
commit 00483df2f2
22 changed files with 64 additions and 65 deletions

View File

@@ -287,7 +287,7 @@ static void window_map_mouseup(rct_window* w, rct_widgetindex widgetIndex)
break;
case WIDX_SET_LAND_RIGHTS:
w->Invalidate();
if (tool_set(w, widgetIndex, TOOL_UP_ARROW))
if (tool_set(w, widgetIndex, Tool::UpArrow))
break;
_activeTool = 2;
// Prevent mountain tool size.
@@ -330,7 +330,7 @@ static void window_map_mouseup(rct_window* w, rct_widgetindex widgetIndex)
break;
case WIDX_BUILD_PARK_ENTRANCE:
w->Invalidate();
if (tool_set(w, widgetIndex, TOOL_UP_ARROW))
if (tool_set(w, widgetIndex, Tool::UpArrow))
break;
gParkEntranceGhostExists = false;
@@ -344,7 +344,7 @@ static void window_map_mouseup(rct_window* w, rct_widgetindex widgetIndex)
gWindowSceneryRotation = (gWindowSceneryRotation + 1) & 3;
break;
case WIDX_PEOPLE_STARTING_POSITION:
if (tool_set(w, widgetIndex, TOOL_UP_ARROW))
if (tool_set(w, widgetIndex, Tool::UpArrow))
break;
show_gridlines();