]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
no more warping meshs of any kind
[xonotic/darkplaces.git] / host_cmd.c
index 1dec6eca1da66f36d5590bc3d6243f18aaac0009..507188bf2d4f0c8fc78746b941af2def076c84e3 100644 (file)
@@ -241,15 +241,15 @@ SERVER TRANSITIONS
 ======================
 Host_Map_f
 
-handle a 
+handle a
 map <servername>
 command from the console.  Active clients are kicked off.
 ======================
 */
 void Host_Map_f (void)
 {
-       int             i;
-       char    name[MAX_QPATH];
+       int i;
+       char name[MAX_QPATH];
 
        if (cmd_source != src_command)
                return;
@@ -259,7 +259,7 @@ void Host_Map_f (void)
        SCR_BeginLoadingPlaque ();
 
        CL_Disconnect ();
-       Host_ShutdownServer(false);             
+       Host_ShutdownServer(false);
 
        key_dest = key_game;                    // remove console or menu
 
@@ -276,9 +276,10 @@ void Host_Map_f (void)
        SV_SpawnServer (name);
        if (!sv.active)
                return;
-       
+
        if (cls.state != ca_dedicated)
        {
+               /*
                strcpy (cls.spawnparms, "");
 
                for (i=2 ; i<Cmd_Argc() ; i++)
@@ -286,9 +287,9 @@ void Host_Map_f (void)
                        strcat (cls.spawnparms, Cmd_Argv(i));
                        strcat (cls.spawnparms, " ");
                }
-               
+               */
                Cmd_ExecuteString ("connect local", src_command);
-       }       
+       }
 }
 
 /*
@@ -846,11 +847,11 @@ void Host_Color_f(void)
        int             playercolor;
        dfunction_t *f;
        func_t  SV_ChangeTeam;
-       
+
        if (Cmd_Argc() == 1)
        {
                Con_Printf ("\"color\" is \"%i %i\"\n", cl_color.integer >> 4, cl_color.integer & 15);
-               Con_Printf ("color <0-13> [0-13]\n");
+               Con_Printf ("color <0-15> [0-15]\n");
                return;
        }
 
@@ -870,7 +871,7 @@ void Host_Color_f(void)
        // LordHavoc: allow skin colormaps 14 and 15 (was 13)
        if (bottom > 15)
                bottom = 15;
-       
+
        playercolor = top*16 + bottom;
 
        if (cmd_source == src_command)
@@ -885,7 +886,7 @@ void Host_Color_f(void)
        {
                Con_DPrintf("Calling SV_ChangeTeam\n");
                pr_global_struct->time = sv.time;
-               pr_globals[0] = playercolor;
+               pr_globals[OFS_PARM0] = playercolor;
                pr_global_struct->self = EDICT_TO_PROG(host_client->edict);
                PR_ExecuteProgram (SV_ChangeTeam, "");
        }
@@ -1019,7 +1020,8 @@ void Host_Spawn_f (void)
 
 // run the entrance script
        if (sv.loadgame)
-       {       // loaded games are fully inited already
+       {
+               // loaded games are fully initialized already
                // if this is the last client to be connected, unpause
                sv.paused = false;
 
@@ -1079,7 +1081,7 @@ void Host_Spawn_f (void)
                MSG_WriteByte (&host_client->message, i);
                MSG_WriteByte (&host_client->message, client->colors);
        }
-       
+
 // send all current light styles
        for (i=0 ; i<MAX_LIGHTSTYLES ; i++)
        {