]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fixed a couple stupid bugs
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 31 Aug 2003 06:35:49 +0000 (06:35 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 31 Aug 2003 06:35:49 +0000 (06:35 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3432 d7cf8633-e32d-0410-b094-e92efae38249

pr_cmds.c

index ac40d2db1e12bec3df96a450f1bce661246f1656..d9762d83c28f0fe0203dcb7429bad32d5a529b3f 100644 (file)
--- a/pr_cmds.c
+++ b/pr_cmds.c
@@ -1433,7 +1433,7 @@ void PF_lightstyle (void)
        if (sv.state != ss_active)
                return;
 
-       for (j = 0, host_client = svs.clients;j < svs.maxclients;j++, host_client++)
+       for (j = 0, client = svs.clients;j < svs.maxclients;j++, client++)
        {
                if (client->netconnection)
                {
@@ -2802,7 +2802,6 @@ void PF_fputs(void)
 {
        int stringlength;
        char string[STRINGTEMP_LENGTH];
-       PF_VarString(1, string, sizeof(string));
        int filenum = G_FLOAT(OFS_PARM0);
        if (filenum < 0 || filenum >= MAX_PRFILES)
        {
@@ -2814,6 +2813,7 @@ void PF_fputs(void)
                Con_Printf("PF_fputs: no such file handle %i (or file has been closed)\n", filenum);
                return;
        }
+       PF_VarString(1, string, sizeof(string));
        if ((stringlength = strlen(string)))
                FS_Write(pr_files[filenum], string, stringlength);
        if (developer.integer)