mirror of
https://github.com/nillerusr/source-engine.git
synced 2025-01-12 16:18:03 +00:00
Fix AnimationController conditional parse
This commit is contained in:
parent
a71627226a
commit
312fdb9576
@ -330,7 +330,7 @@ bool AnimationController::ParseScriptFile(char *pMem, int length)
|
|||||||
|
|
||||||
// get the open brace or a conditional
|
// get the open brace or a conditional
|
||||||
pMem = ParseFile(pMem, token, NULL);
|
pMem = ParseFile(pMem, token, NULL);
|
||||||
if ( Q_stristr( token, "[$" ) )
|
if ( Q_stristr( token, "[$" ) || Q_stristr( token, "[!$" ) )
|
||||||
{
|
{
|
||||||
bAccepted = EvaluateConditional( token );
|
bAccepted = EvaluateConditional( token );
|
||||||
|
|
||||||
@ -655,7 +655,7 @@ bool AnimationController::ParseScriptFile(char *pMem, int length)
|
|||||||
|
|
||||||
// Look ahead one token for a conditional
|
// Look ahead one token for a conditional
|
||||||
char *peek = ParseFile(pMem, token, NULL);
|
char *peek = ParseFile(pMem, token, NULL);
|
||||||
if ( Q_stristr( token, "[$" ) )
|
if ( Q_stristr( token, "[$" ) || Q_stristr( token, "[!$" ) )
|
||||||
{
|
{
|
||||||
if ( !EvaluateConditional( token ) )
|
if ( !EvaluateConditional( token ) )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user