(svn r214) -Feature: CMD_NET_INSTANT [just in time command handling over network] (sign_de)

-Fix: Only server can pause in network, action disabled for clients
-Fix: Direct Connect editbox can handle up to max ~35 characters
This commit is contained in:
darkvater
2004-09-12 15:29:37 +00:00
parent f64c1bda4b
commit 99687cf513
6 changed files with 59 additions and 19 deletions

6
ttd.c
View File

@@ -878,6 +878,9 @@ normal_load:
// That check is enforced in DoCommand.
void StateGameLoop()
{
// dont execute the state loop during pause
if (_pause) return;
_in_state_game_loop = true;
_frame_counter++;
@@ -1021,8 +1024,7 @@ void GameLoop()
}
} else {
// server/client/standalone: not synced --> state game loop
if (!_pause)
StateGameLoop();
StateGameLoop();
// server/client: process queued network commands
if (_networking) NetworkProcessCommands();
}