]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
added cl_nettimesyncmode 5 (now the default), this is very similar to
[xonotic/darkplaces.git] / host_cmd.c
index f2078fac228357f64b821769ad0a555b2d9133a1..d60489b35b390b0ee4c709b7f9e3a7b0a22291a3 100644 (file)
@@ -761,13 +761,13 @@ void Host_Name_f (void)
                return;
        }
 
-       if (sv.time < host_client->nametime)
+       if (realtime < host_client->nametime)
        {
                SV_ClientPrintf("You can't change name more than once every 5 seconds!\n");
                return;
        }
 
-       host_client->nametime = sv.time + 5;
+       host_client->nametime = realtime + 5;
 
        // point the string back at updateclient->name to keep it safe
        strlcpy (host_client->name, newName, sizeof (host_client->name));
@@ -819,13 +819,13 @@ void Host_Playermodel_f (void)
        }
 
        /*
-       if (sv.time < host_client->nametime)
+       if (realtime < host_client->nametime)
        {
                SV_ClientPrintf("You can't change playermodel more than once every 5 seconds!\n");
                return;
        }
 
-       host_client->nametime = sv.time + 5;
+       host_client->nametime = realtime + 5;
        */
 
        // point the string back at updateclient->name to keep it safe
@@ -876,13 +876,13 @@ void Host_Playerskin_f (void)
        }
 
        /*
-       if (sv.time < host_client->nametime)
+       if (realtime < host_client->nametime)
        {
                SV_ClientPrintf("You can't change playermodel more than once every 5 seconds!\n");
                return;
        }
 
-       host_client->nametime = sv.time + 5;
+       host_client->nametime = realtime + 5;
        */
 
        // point the string back at updateclient->name to keep it safe