mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 15:24:30 +01:00
Clean up tile element usage, introduce struct methods
This commit is contained in:
@@ -249,7 +249,7 @@ static void window_sign_mouseup(rct_window *w, rct_widgetindex widgetIndex)
|
||||
}
|
||||
game_do_command(
|
||||
x,
|
||||
1 | ((tile_element->type & TILE_ELEMENT_DIRECTION_MASK) << 8),
|
||||
1 | (tile_element->getDirection() << 8),
|
||||
y,
|
||||
tile_element->base_height | (scenery_large_get_sequence(tile_element) << 8),
|
||||
GAME_COMMAND_REMOVE_LARGE_SCENERY,
|
||||
@@ -512,9 +512,9 @@ static void window_sign_small_mouseup(rct_window *w, rct_widgetindex widgetIndex
|
||||
gGameCommandErrorTitle = STR_CANT_REMOVE_THIS;
|
||||
game_do_command(
|
||||
x,
|
||||
1 | ((tile_element->type & TILE_ELEMENT_DIRECTION_MASK) << 8),
|
||||
1 | (tile_element->getDirection() << 8),
|
||||
y,
|
||||
(tile_element->base_height << 8) | (tile_element->type & TILE_ELEMENT_DIRECTION_MASK),
|
||||
(tile_element->base_height << 8) | tile_element->getDirection(),
|
||||
GAME_COMMAND_REMOVE_WALL,
|
||||
0,
|
||||
0);
|
||||
|
||||
Reference in New Issue
Block a user