1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 05:29:11 +00:00

(svn r1648) -Fix: server can now pause and unpause a game through the console. Use 'pause' and 'unpause'

This commit is contained in:
darkvater
2005-01-24 21:33:44 +00:00
parent 6151c1044a
commit e05f961eed
3 changed files with 29 additions and 3 deletions

View File

@@ -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);
}