Add step console command to advance n ticks

Cherry-picked from https://github.com/citymania-org/cmclient
Commit: 5ce2d21223a96934a83b8da43434c7a81f001ef0
This commit is contained in:
dP
2020-06-05 17:11:09 +01:00
committed by Jonathan G Rennison
parent 50965bbce7
commit ca23e8abcf
7 changed files with 26 additions and 1 deletions

View File

@@ -179,8 +179,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);
}