]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
moved rate and connecttime from netconn structure to client structure in preparation...
[xonotic/darkplaces.git] / host_cmd.c
index 7324da76e48c35d1023a43da58d45ac74eda6573..a6b67ca6306583fe8ac1b23fa0b3bc10e1ee4edf 100644 (file)
@@ -84,7 +84,7 @@ void Host_Status_f (void)
        {
                if (!client->active)
                        continue;
-               seconds = (int)(realtime - client->netconnection->connecttime);
+               seconds = (int)(realtime - client->connecttime);
                minutes = seconds / 60;
                if (minutes)
                {
@@ -1014,7 +1014,7 @@ void Host_Rate_f(void)
                return;
        }
 
-       host_client->netconnection->rate = rate;
+       host_client->rate = rate;
 }
 
 /*
@@ -1201,7 +1201,7 @@ void Host_Spawn_f (void)
                pr_global_struct->self = EDICT_TO_PROG(sv_player);
                PR_ExecuteProgram (pr_global_struct->ClientConnect, "QC function ClientConnect is missing");
 
-               if ((Sys_DoubleTime() - host_client->netconnection->connecttime) <= sv.time)
+               if ((Sys_DoubleTime() - host_client->connecttime) <= sv.time)
                        Sys_Printf("%s entered the game\n", host_client->name);
 
                PR_ExecuteProgram (pr_global_struct->PutClientInServer, "QC function PutClientInServer is missing");