From 0253b815dba0bb4439541e4b855294af90ad1976 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 19 Oct 2004 10:58:50 +0000 Subject: [PATCH] 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 --- host_cmd.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.2