Fix #4549: Allow maze to be built in pause mode if build-while-paused-cheat is enabled

This commit is contained in:
Manuel Vögele 2016-10-08 00:23:39 +02:00 committed by Ted John
parent a8a4c0deb4
commit 7b9bfd6529
1 changed files with 1 additions and 1 deletions

View File

@ -1516,7 +1516,7 @@ static money32 place_maze_design(uint8 flags, uint8 rideIndex, uint16 mazeEntry,
}
if (!(flags & GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED)) {
if (game_is_paused()) {
if (game_is_paused() && !gCheatsBuildInPauseMode) {
gGameCommandErrorText = STR_CONSTRUCTION_NOT_POSSIBLE_WHILE_GAME_IS_PAUSED;
return MONEY32_UNDEFINED;
}