mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
260a72b033
commit
5311e29e65
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue