don't print both of the two possible warning messages in PF_VarString()

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@671 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2012-05-15 16:10:13 +00:00
parent b0c683f4cd
commit 792318902f

View file

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