relaxed PF_VarString() warnings a little.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@792 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2013-01-06 12:05:34 +00:00
parent 260a72b033
commit 5311e29e65

View file

@ -59,11 +59,11 @@ static char *PF_VarString (int first)
s = q_strlcat(out, G_STRING((OFS_PARM0+i*3)), sizeof(out));
if (s >= sizeof(out))
{
Con_Printf("PF_VarString: overflow (string truncated)\n");
Con_Warning("PF_VarString: overflow (string truncated)\n");
return out;
}
}
if (s > 255)
if (s > 255 && developer.value)
Con_Warning("PF_VarString: %i characters exceeds standard limit of 255.\n", (int) s);
return out;
}