summaryrefslogtreecommitdiff
path: root/network.c
diff options
context:
space:
mode:
authorsignde <signde@openttd.org>2004-09-16 06:17:50 +0000
committersignde <signde@openttd.org>2004-09-16 06:17:50 +0000
commit25b5a727e855d6bdecef1166cb1a0177261b255c (patch)
treec010bf229e6b05881880c7d437f3d81261b03a6a /network.c
parentcbcf002a91f0794cd41b256571e708c6e61752bc (diff)
downloadopenttd-25b5a727e855d6bdecef1166cb1a0177261b255c.tar.xz
(svn r268) -Fix: console-command: script command now stops recording correctly
-Fix: network client should not stop sending ready packets anymore [client should not timeout without any reason]
Diffstat (limited to 'network.c')
-rw-r--r--network.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/network.c b/network.c
index c9aa2a785..1fdccc3d2 100644
--- a/network.c
+++ b/network.c
@@ -352,9 +352,8 @@ static void QueueClear(CommandQueue *nq)
static int GetNextSyncFrame()
{
uint32 newframe;
- if (_frame_fsync_last == 0) return -5;
- 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;
+ if (_frame_fsync_last == 0) return -11;
+ newframe = (_frame_fsync_last + 11); // do not use a multiple of 4 since that screws up sync-packets
return (_frame_counter_max - newframe);
}