diff options
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); } |