Add step console command to advance n ticks

This commit is contained in:
dP
2020-06-05 19:11:09 +03:00
parent f2b6576d8f
commit 5ce2d21223
9 changed files with 29 additions and 3 deletions

View File

@@ -170,8 +170,9 @@ CommandCost CmdPause(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2,
} else {
PauseMode prev_mode = _pause_mode;
if (p2 == 0) {
if ((p2 & 1) == 0) {
_pause_mode = static_cast<PauseMode>(_pause_mode & (byte)~p1);
_pause_countdown = (p2 >> 1);
} else {
_pause_mode = static_cast<PauseMode>(_pause_mode | (byte)p1);
}