From de7a03a78034367a2cda2c7e555e3e226e1d52d3 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 9 May 2021 13:00:56 +0000 Subject: [PATCH] Fix some warning prints not printing what was intended. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5837 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/p_script.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/engine/client/p_script.c b/engine/client/p_script.c index 340248a5f..fe9fcf274 100644 --- a/engine/client/p_script.c +++ b/engine/client/p_script.c @@ -3305,19 +3305,19 @@ static void P_ImportEffectInfo(char *config, char *line) } #if 1 else if (!strcmp(arg[0], "staincolor") && args == 3) //stainmaps multiplier - Con_ThrottlePrintf(&printtimer, 1, "%s.%s: Particle effect token %s not supported\n", ptype->config?ptype->config:"", ptype->name,arg[0]); + Con_ThrottlePrintf(&printtimer, 1, "%s.%s: Particle effect token %s not supported\n", *ptype->config?ptype->config:"", ptype->name,arg[0]); else if (!strcmp(arg[0], "stainalpha") && args == 3) //affects stainmaps AND stain-decals. - Con_ThrottlePrintf(&printtimer, 1, "%s.%s: Particle effect token %s not supported\n", ptype->config?ptype->config:"", ptype->name,arg[0]); + Con_ThrottlePrintf(&printtimer, 1, "%s.%s: Particle effect token %s not supported\n", *ptype->config?ptype->config:"", ptype->name,arg[0]); else if (!strcmp(arg[0], "stainsize") && args == 3) //affects stainmaps AND stain-decals. - Con_ThrottlePrintf(&printtimer, 1, "%s.%s: Particle effect token %s not supported\n", ptype->config?ptype->config:"", ptype->name,arg[0]); + Con_ThrottlePrintf(&printtimer, 1, "%s.%s: Particle effect token %s not supported\n", *ptype->config?ptype->config:"", ptype->name,arg[0]); else if (!strcmp(arg[0], "staintex") && args == 3) //actually spawns a decal - Con_ThrottlePrintf(&printtimer, 1, "%s.%s: Particle effect token %s not supported\n", ptype->config?ptype->config:"", ptype->name,arg[0]); + Con_ThrottlePrintf(&printtimer, 1, "%s.%s: Particle effect token %s not supported\n", *ptype->config?ptype->config:"", ptype->name,arg[0]); else if (!strcmp(arg[0], "stainless") && args == 2) - Con_ThrottlePrintf(&printtimer, 1, "%s.%s: Particle effect token %s not supported\n", ptype->config?ptype->config:"", ptype->name,arg[0]); + Con_ThrottlePrintf(&printtimer, 1, "%s.%s: Particle effect token %s not supported\n", *ptype->config?ptype->config:"", ptype->name,arg[0]); else if (!strcmp(arg[0], "relativeoriginoffset") && args == 4) - Con_ThrottlePrintf(&printtimer, 1, "%s.%s: Particle effect token %s not supported\n", ptype->config?ptype->config:"", ptype->name,arg[0]); + Con_ThrottlePrintf(&printtimer, 1, "%s.%s: Particle effect token %s not supported\n", *ptype->config?ptype->config:"", ptype->name,arg[0]); else if (!strcmp(arg[0], "relativevelocityoffset") && args == 4) - Con_ThrottlePrintf(&printtimer, 1, "%s.%s: Particle effect token %s not supported\n", ptype->config?ptype->config:"", ptype->name, arg[0]); + Con_ThrottlePrintf(&printtimer, 1, "%s.%s: Particle effect token %s not supported\n", *ptype->config?ptype->config:"", ptype->name, arg[0]); #endif else if (!strcmp(arg[0], "rotate") && args == 5) { @@ -3332,7 +3332,7 @@ static void P_ImportEffectInfo(char *config, char *line) ptype->rotationstartmin += M_PI/4; } else - Con_ThrottlePrintf(&printtimer, 0, "%s.%s: Particle effect token not recognised, or invalid args: %s %s %s %s %s %s\n", ptype->config?ptype->config:"", ptype->name, arg[0], args<2?"":arg[1], args<3?"":arg[2], args<4?"":arg[3], args<5?"":arg[4], args<6?"":arg[5]); + Con_ThrottlePrintf(&printtimer, 0, "%s.%s: Particle effect token not recognised, or invalid args: %s %s %s %s %s %s\n", *ptype->config?ptype->config:"", ptype->name, arg[0], args<2?"":arg[1], args<3?"":arg[2], args<4?"":arg[3], args<5?"":arg[4], args<6?"":arg[5]); args = 0; }