pr_edict.c (ED_ParseEpair): remove a developer.value check before the Con_Dwarning call added by r1527

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1528 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2017-11-10 05:55:04 +00:00
parent c9274d0feb
commit 9c45d6014a

View file

@ -771,7 +771,7 @@ Can parse either fields or globals
returns false if error
=============
*/
static qboolean ED_ParseEpair (void *base, ddef_t *key, const char *s)
static qboolean ED_ParseEpair (void *base, ddef_t *key, const char *s)
{
int i;
char string[128];
@ -809,11 +809,10 @@ static qboolean ED_ParseEpair (void *base, ddef_t *key, const char *s)
w = v = v+1;
}
// ericw -- fill remaining elements to 0.0f in case we hit the end of string before reading 3 floats
// ericw -- fill remaining elements to 0.0f in case we hit the end of string before reading 3 floats
if (i < 3)
{
if (developer.value)
Con_DWarning("vanilla will read garbage for \"%s\" \"%s\"\n", PR_GetString(key->s_name), s);
Con_DWarning("vanilla will read garbage for \"%s\" \"%s\"\n", PR_GetString(key->s_name), s);
for (; i < 3; i++)
((float *)d)[i] = 0.0f;
}