1
0
Fork 0
forked from fte/fteqw

well this somewhat fixes r_part and "blank lines" inbetween { and } but not completely, a real fix is needed for anything using Cbuf_NextLine

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1539 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-10-26 05:02:45 +00:00
parent ed279df1c4
commit b19c4d4a81

View file

@ -488,16 +488,17 @@ void P_ParticleEffect_f(void)
while(1)
{
buf = Cbuf_GetNext(Cmd_ExecLevel);
while (*buf && *buf <= ' ')
buf++; //no whitespace please.
if (*buf == '}')
break;
if (!*buf)
{
Con_Printf("Unexpected end of buffer with effect %s\n", ptype->name);
return;
}
while (*buf && *buf <= ' ')
buf++; //no whitespace please.
if (*buf == '}')
break;
Cmd_TokenizeString(buf, true, true);
var = Cmd_Argv(0);
value = Cmd_Argv(1);