mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 20:11:44 +00:00
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:
parent
ed279df1c4
commit
b19c4d4a81
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue