diff options
author | darkvater <darkvater@openttd.org> | 2005-01-24 21:33:44 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2005-01-24 21:33:44 +0000 |
commit | e05f961eed4e8165a5089e5e7bf957fdde82c17e (patch) | |
tree | 072693334d01c3db01a4ab15ab7ec9a69ece0bcf /misc_cmd.c | |
parent | 6151c1044ad4355570c44c3d6d1a49aaf47c755d (diff) | |
download | openttd-e05f961eed4e8165a5089e5e7bf957fdde82c17e.tar.xz |
(svn r1648) -Fix: server can now pause and unpause a game through the console. Use 'pause' and 'unpause'
Diffstat (limited to 'misc_cmd.c')
-rw-r--r-- | misc_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc_cmd.c b/misc_cmd.c index 865324acc..67d4d958f 100644 --- a/misc_cmd.c +++ b/misc_cmd.c @@ -175,8 +175,8 @@ int32 CmdChangePresidentName(int x, int y, uint32 flags, uint32 p1, uint32 p2) int32 CmdPause(int x, int y, uint32 flags, uint32 p1, uint32 p2) { if (flags & DC_EXEC) { - _pause += p1?1:-1; - if(_pause==(byte)-1) _pause = 0; + _pause += (p1 == 1) ? 1 : -1; + if (_pause == (byte)-1) _pause = 0; InvalidateWindow(WC_STATUS_BAR, 0); InvalidateWindow(WC_MAIN_TOOLBAR, 0); } |