From ac3a9950cada713952618fa12dcb697c50957577 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 31 Aug 2003 06:35:49 +0000 Subject: [PATCH] fixed a couple stupid bugs git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3432 d7cf8633-e32d-0410-b094-e92efae38249 --- pr_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pr_cmds.c b/pr_cmds.c index ac40d2db..d9762d83 100644 --- 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) -- 2.39.2