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)
|
while(1)
|
||||||
{
|
{
|
||||||
buf = Cbuf_GetNext(Cmd_ExecLevel);
|
buf = Cbuf_GetNext(Cmd_ExecLevel);
|
||||||
while (*buf && *buf <= ' ')
|
|
||||||
buf++; //no whitespace please.
|
|
||||||
if (*buf == '}')
|
|
||||||
break;
|
|
||||||
if (!*buf)
|
if (!*buf)
|
||||||
{
|
{
|
||||||
Con_Printf("Unexpected end of buffer with effect %s\n", ptype->name);
|
Con_Printf("Unexpected end of buffer with effect %s\n", ptype->name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while (*buf && *buf <= ' ')
|
||||||
|
buf++; //no whitespace please.
|
||||||
|
if (*buf == '}')
|
||||||
|
break;
|
||||||
|
|
||||||
Cmd_TokenizeString(buf, true, true);
|
Cmd_TokenizeString(buf, true, true);
|
||||||
var = Cmd_Argv(0);
|
var = Cmd_Argv(0);
|
||||||
value = Cmd_Argv(1);
|
value = Cmd_Argv(1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue