summaryrefslogtreecommitdiff
path: root/source/sv_init.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-03-24 20:58:48 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-03-24 20:58:48 +0000
commitb187be310e6f5c8a535864558827e16140ede6b1 (patch)
tree329df938c4f216e25ff12c34d11b8ed1341d7f86 /source/sv_init.c
parentc06168ccfc069a1b8361809bef6734a0b2ee8107 (diff)
Remove useless time wraparound checks.
Apply more careful input sanitizing in several places (issues revealed by zzuf(1)). Remove stereo *.wav loading stuff, Q2 has never supported it properly. Fixed a memory leak in Image_LoadPCX. Mark clients after receiving ICMP errors from them, drop after `sv_ghostime' seconds.
Diffstat (limited to 'source/sv_init.c')
-rw-r--r--source/sv_init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/sv_init.c b/source/sv_init.c
index f1be788..4dbdc54 100644
--- a/source/sv_init.c
+++ b/source/sv_init.c
@@ -32,7 +32,7 @@ void SV_ClientReset( client_t *client ) {
// any partially connected client will be restarted
client->state = cs_connected;
client->lastframe = -1;
- client->sendTime = 0;
+ client->send_delta = 0;
client->surpressCount = 0;
memset( &client->lastcmd, 0, sizeof( client->lastcmd ) );
}
@@ -65,8 +65,7 @@ void SV_SpawnServer( const char *server, const char *spawnpoint ) {
sv.spawncount = ( rand() | ( rand() << 16 ) ) ^ Sys_Milliseconds();
sv.spawncount &= 0x7FFFFFFF;
- // reset counters
- svs.realtime = 0;
+ // reset entity counter
svs.nextEntityStates = 0;
if( sv_mvd_enable->integer ) {