Add step console command to advance n ticks
Cherry-picked from https://github.com/citymania-org/cmclient Commit: 5ce2d21223a96934a83b8da43434c7a81f001ef0
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user