summaryrefslogtreecommitdiff
path: root/src/net_server.c
diff options
context:
space:
mode:
authorSimon Howard2006-02-23 18:20:29 +0000
committerSimon Howard2006-02-23 18:20:29 +0000
commit19b8c7428afd6a42485a76bdf938e686e8450543 (patch)
tree13a9094bd9be855a6ae61a692f70ae793c47c797 /src/net_server.c
parent8b08253a0da0d081348c8755ec8a07977726de2b (diff)
downloadchocolate-doom-19b8c7428afd6a42485a76bdf938e686e8450543.tar.gz
chocolate-doom-19b8c7428afd6a42485a76bdf938e686e8450543.tar.bz2
chocolate-doom-19b8c7428afd6a42485a76bdf938e686e8450543.zip
Fix bugs in resend code for server->client data
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 377
Diffstat (limited to 'src/net_server.c')
-rw-r--r--src/net_server.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/net_server.c b/src/net_server.c
index 6cc35350..aedd5f19 100644
--- a/src/net_server.c
+++ b/src/net_server.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: net_server.c 375 2006-02-22 18:35:55Z fraggle $
+// $Id: net_server.c 377 2006-02-23 18:20:29Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -21,6 +21,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.30 2006/02/23 18:20:29 fraggle
+// Fix bugs in resend code for server->client data
+//
// Revision 1.29 2006/02/22 18:35:55 fraggle
// Packet resends for server->client gamedata
//
@@ -920,7 +923,7 @@ static void NET_SV_SendTics(net_client_t *client, int start, int end)
// Add command
- NET_WriteFullTiccmd(packet, cmd);
+ NET_WriteFullTiccmd(packet, cmd, false);
}
// Send packet
@@ -945,6 +948,8 @@ static void NET_SV_ParseResendRequest(net_packet_t *packet, net_client_t *client
return;
}
+ //printf("SV: %p: resend %i-%i\n", client, start, start+num_tics-1);
+
// Resend those tics
NET_SV_SendTics(client, start, start + num_tics - 1);
@@ -1124,7 +1129,7 @@ static void NET_SV_PumpSendQueue(net_client_t *client)
}
}
- //printf("have complete ticcmd for %i\n", client->sendseq);
+ //printf("SV: have complete ticcmd for %i\n", client->sendseq);
// We have all data we need to generate a command for this tic.