]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
reset nametime at prespawn (before name command is sent by client) and spawn (after...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 19 Oct 2004 10:58:50 +0000 (10:58 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 19 Oct 2004 10:58:50 +0000 (10:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4673 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index d6aa856d6949bd6c7c58d2e58b45fc9366ee56ee..07ca90a235ec238a8cdd21c66d895e4c340cfeb4 100644 (file)
@@ -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