mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2024-08-31 14:36:07 +02:00
Limit tile inspector coord update to valid actions only
This commit is contained in:
parent
b874626602
commit
663e45f24d
1 changed files with 4 additions and 1 deletions
|
@ -5789,7 +5789,10 @@ void game_command_modify_tile(sint32* eax, sint32* ebx, sint32* ecx, sint32* edx
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flags & GAME_COMMAND_FLAG_APPLY && gGameCommandNestLevel == 1 && !(flags & GAME_COMMAND_FLAG_GHOST))
|
if (flags & GAME_COMMAND_FLAG_APPLY &&
|
||||||
|
gGameCommandNestLevel == 1 &&
|
||||||
|
!(flags & GAME_COMMAND_FLAG_GHOST) &&
|
||||||
|
*ebx != MONEY32_UNDEFINED)
|
||||||
{
|
{
|
||||||
rct_xyz16 coord;
|
rct_xyz16 coord;
|
||||||
coord.x = (x << 5) + 16;
|
coord.x = (x << 5) + 16;
|
||||||
|
|
Loading…
Reference in a new issue