(svn r1648) -Fix: server can now pause and unpause a game through the console. Use 'pause' and 'unpause'
This commit is contained in:
		@@ -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);
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user