From b19c4d4a81d6c7aa916b0dfb9c2b8f7ccbf136bb Mon Sep 17 00:00:00 2001 From: TimeServ Date: Wed, 26 Oct 2005 05:02:45 +0000 Subject: [PATCH] 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 --- engine/client/r_part.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/engine/client/r_part.c b/engine/client/r_part.c index 48a9aafa6..c2b9fed12 100644 --- a/engine/client/r_part.c +++ b/engine/client/r_part.c @@ -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);