1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00
This commit is contained in:
IntelOrca
2015-06-18 22:35:08 +01:00
parent 46ac3b1c7b
commit 3140042b1d

View File

@@ -436,14 +436,14 @@ static void viewport_interaction_remove_footpath_item(rct_map_element *mapElemen
{
int type;
type = mapElement->properties.scenery.type >> 4;
if (mapElement->type & 0x80)
type = mapElement->properties.path.type >> 4;
if (mapElement->type & 1)
type |= 0x80;
RCT2_GLOBAL(RCT2_ADDRESS_GAME_COMMAND_ERROR_TITLE, uint16) = STR_CANT_REMOVE_THIS;
game_do_command(
x,
((mapElement->properties.scenery.type & 7) << 8) | 1,
((mapElement->properties.path.type & 7) << 8) | 1,
y,
(type << 8) | mapElement->base_height,
GAME_COMMAND_PLACE_PATH,