summaryrefslogtreecommitdiff
path: root/network.c
diff options
context:
space:
mode:
authorsignde <signde@openttd.org>2004-09-14 22:51:37 +0000
committersignde <signde@openttd.org>2004-09-14 22:51:37 +0000
commit9dcf10eb6c3bc0e06f003c79269d1c4c99b5ab22 (patch)
tree118d146d5c22439eb93a3b7587fd820f0fe056ce /network.c
parenteaeca76e5aef9a7aad2bbe57142e5fefe0118ff6 (diff)
downloadopenttd-9dcf10eb6c3bc0e06f003c79269d1c4c99b5ab22.tar.xz
(svn r261) -Workaround: unplayeable network-game on busy maps because of wrong setup of _current_player. This is only a workaround that can cause desyncs too but not that often
Diffstat (limited to 'network.c')
-rw-r--r--network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/network.c b/network.c
index edfeeec12..fde009102 100644
--- a/network.c
+++ b/network.c
@@ -353,7 +353,7 @@ static int GetNextSyncFrame()
{
uint32 newframe;
if (_frame_fsync_last == 0) return -5;
- newframe = (_frame_fsync_last + 16);
+ newframe = (_frame_fsync_last + 10); // do not use a multiple of 4 since that screws up sync-packets
if ( (newframe + 4) > _frame_counter_max) return -5;
return (_frame_counter_max - newframe);