summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2007-05-09 18:48:32 +0000
committerSimon Howard2007-05-09 18:48:32 +0000
commit8e024a47e049234fc0502ad723dc165388f6e795 (patch)
tree498f20dc50320ba1f8c225d7b71ed4d4ed19e4d9
parent85a709203c997834db1cbd8b4d6a979197306111 (diff)
downloadchocolate-doom-8e024a47e049234fc0502ad723dc165388f6e795.tar.gz
chocolate-doom-8e024a47e049234fc0502ad723dc165388f6e795.tar.bz2
chocolate-doom-8e024a47e049234fc0502ad723dc165388f6e795.zip
Fix ticdup.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 874
-rw-r--r--src/net_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_client.c b/src/net_client.c
index 12e56041..96e31986 100644
--- a/src/net_client.c
+++ b/src/net_client.c
@@ -450,7 +450,7 @@ static void NET_CL_SendGameDataACK(void)
packet = NET_NewPacket(10);
NET_WriteInt16(packet, NET_PACKET_TYPE_GAMEDATA_ACK);
- NET_WriteInt8(packet, gametic & 0xff);
+ NET_WriteInt8(packet, (gametic / ticdup) & 0xff);
NET_Conn_SendPacket(&client_connection, packet);
@@ -482,7 +482,7 @@ static void NET_CL_SendTics(int start, int end)
// Write the start tic and number of tics. Send only the low byte
// of start - it can be inferred by the server.
- NET_WriteInt8(packet, gametic & 0xff);
+ NET_WriteInt8(packet, (gametic / ticdup) & 0xff);
NET_WriteInt8(packet, start & 0xff);
NET_WriteInt8(packet, end - start + 1);