Browse Source

Fix AnimationController conditional parse

ssdk2013
JusicP 3 years ago
parent
commit
312fdb9576
  1. 4
      vgui2/vgui_controls/AnimationController.cpp

4
vgui2/vgui_controls/AnimationController.cpp

@ -330,7 +330,7 @@ bool AnimationController::ParseScriptFile(char *pMem, int length) @@ -330,7 +330,7 @@ bool AnimationController::ParseScriptFile(char *pMem, int length)
// get the open brace or a conditional
pMem = ParseFile(pMem, token, NULL);
if ( Q_stristr( token, "[$" ) )
if ( Q_stristr( token, "[$" ) || Q_stristr( token, "[!$" ) )
{
bAccepted = EvaluateConditional( token );
@ -655,7 +655,7 @@ bool AnimationController::ParseScriptFile(char *pMem, int length) @@ -655,7 +655,7 @@ bool AnimationController::ParseScriptFile(char *pMem, int length)
// Look ahead one token for a conditional
char *peek = ParseFile(pMem, token, NULL);
if ( Q_stristr( token, "[$" ) )
if ( Q_stristr( token, "[$" ) || Q_stristr( token, "[!$" ) )
{
if ( !EvaluateConditional( token ) )
{

Loading…
Cancel
Save