(svn r240) -Fix: desync on subsidy generation

-Fix: sometimes commands got executed to early on some clients
-Feature: universal event packets for transmitting subsidys
This commit is contained in:
signde
2004-09-13 22:49:11 +00:00
parent 9258f81405
commit bb2f8d8d1a
8 changed files with 91 additions and 13 deletions

2
ttd.c
View File

@@ -889,7 +889,7 @@ void StateGameLoop()
// store the random seed to be able to detect out of sync errors
_sync_seed_1 = _random_seeds[0][0];
_sync_seed_2 = _random_seeds[0][1];
if (_networking) disable_computer=true;
if (_networking) disable_computer=true;
if (_savedump_path[0] && (uint)_frame_counter >= _savedump_first && (uint)(_frame_counter -_savedump_first) % _savedump_freq == 0 ) {
char buf[100];