ref: 8e024a47e049234fc0502ad723dc165388f6e795
parent: 85a709203c997834db1cbd8b4d6a979197306111
author: Simon Howard <[email protected]>
date: Wed May 9 14:48:32 EDT 2007
Fix ticdup. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 874
--- a/src/net_client.c
+++ b/src/net_client.c
@@ -450,7 +450,7 @@
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 @@
// 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);