From: havoc Date: Tue, 19 Oct 2004 10:58:50 +0000 (+0000) Subject: reset nametime at prespawn (before name command is sent by client) and spawn (after... X-Git-Tag: xonotic-v0.1.0preview~5451 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0253b815dba0bb4439541e4b855294af90ad1976;p=xonotic%2Fdarkplaces.git reset nametime at prespawn (before name command is sent by client) and spawn (after name command is sent by client) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4673 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host_cmd.c b/host_cmd.c index d6aa856d..07ca90a2 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -1125,6 +1125,9 @@ void Host_PreSpawn_f (void) MSG_WriteByte (&host_client->message, svc_signonnum); MSG_WriteByte (&host_client->message, 2); host_client->sendsignon = true; + + // reset the name change timer because the client will send name soon + host_client->nametime = 0; } /* @@ -1157,6 +1160,8 @@ void Host_Spawn_f (void) return; } + // reset name change timer again because they might want to change name + // again in the first 5 seconds after connecting host_client->nametime = 0; // LordHavoc: moved this above the QC calls at FrikaC's request