mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 17:54:50 +01:00
refactor game command enum
This commit is contained in:
@@ -2357,7 +2357,7 @@ money32 sub_6CA162(int rideIndex, int trackType, int trackDirection, int edxRS16
|
||||
sub_6C96C0();
|
||||
ride = GET_RIDE(rideIndex);
|
||||
if (ride->type == RIDE_TYPE_MAZE) {
|
||||
result = game_do_command(x, 105 | (4 << 8), y, rideIndex | (trackType << 8) | (edxRS16 << 16), GAME_COMMAND_38, z, 0);
|
||||
result = game_do_command(x, 105 | (4 << 8), y, rideIndex | (trackType << 8) | (edxRS16 << 16), GAME_COMMAND_SET_MAZE_TRACK, z, 0);
|
||||
if (result == MONEY32_UNDEFINED)
|
||||
return result;
|
||||
|
||||
|
||||
@@ -1223,9 +1223,9 @@ void window_staff_overview_text_input(){
|
||||
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_GAME_COMMAND_ERROR_STRING_ID, uint16) = 2979;
|
||||
|
||||
game_do_command(1, 1, w->number, *text, GAME_COMMAND_22, *(text + 2), *(text + 1));
|
||||
game_do_command(2, 1, 0, *(text + 3), GAME_COMMAND_22, *(text + 5), *(text + 4));
|
||||
game_do_command(0, 1, 0, *(text + 6), GAME_COMMAND_22, *(text + 8), *(text + 7));
|
||||
game_do_command(1, 1, w->number, *text, GAME_COMMAND_SET_PEEP_NAME, *(text + 2), *(text + 1));
|
||||
game_do_command(2, 1, 0, *(text + 3), GAME_COMMAND_SET_PEEP_NAME, *(text + 5), *(text + 4));
|
||||
game_do_command(0, 1, 0, *(text + 6), GAME_COMMAND_SET_PEEP_NAME, *(text + 8), *(text + 7));
|
||||
}
|
||||
|
||||
/* rct2: 0x006BE5FC */
|
||||
|
||||
@@ -785,7 +785,7 @@ static void repaint_scenery_tool_down(sint16 x, sint16 y, sint16 widgetIndex){
|
||||
1 | (map_element->type << 8),
|
||||
grid_y,
|
||||
map_element->base_height | (map_element->properties.scenery.type << 8),
|
||||
GAME_COMMAND_52,
|
||||
GAME_COMMAND_SET_SCENERY_COLOUR,
|
||||
0,
|
||||
window_scenery_primary_colour | (window_scenery_secondary_colour << 8));
|
||||
break;
|
||||
@@ -806,7 +806,7 @@ static void repaint_scenery_tool_down(sint16 x, sint16 y, sint16 widgetIndex){
|
||||
1 | (window_scenery_primary_colour << 8),
|
||||
grid_y,
|
||||
(map_element->type & MAP_ELEMENT_DIRECTION_MASK) | (map_element->base_height << 8),
|
||||
GAME_COMMAND_53,
|
||||
GAME_COMMAND_SET_FENCE_COLOUR,
|
||||
0,
|
||||
window_scenery_secondary_colour | (window_scenery_tertiary_colour << 8));
|
||||
break;
|
||||
@@ -826,7 +826,7 @@ static void repaint_scenery_tool_down(sint16 x, sint16 y, sint16 widgetIndex){
|
||||
1 | ((map_element->type & MAP_ELEMENT_DIRECTION_MASK) << 8),
|
||||
grid_y,
|
||||
map_element->base_height | ((map_element->properties.scenerymultiple.type >> 10) << 8),
|
||||
GAME_COMMAND_54,
|
||||
GAME_COMMAND_SET_LARGE_SCENERY_COLOUR,
|
||||
0,
|
||||
window_scenery_primary_colour | (window_scenery_secondary_colour << 8));
|
||||
break;
|
||||
@@ -847,7 +847,7 @@ static void repaint_scenery_tool_down(sint16 x, sint16 y, sint16 widgetIndex){
|
||||
1,
|
||||
grid_y,
|
||||
map_element->base_height | ((map_element->properties.banner.position & 0x3) << 8),
|
||||
GAME_COMMAND_55,
|
||||
GAME_COMMAND_SET_BANNER_COLOUR,
|
||||
0,
|
||||
window_scenery_primary_colour | (window_scenery_secondary_colour << 8));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user