From 312fdb9576fe85a157936a4f9a82c1ef5c9e5f7c Mon Sep 17 00:00:00 2001 From: JusicP Date: Tue, 15 Mar 2022 17:35:39 +0200 Subject: [PATCH] Fix AnimationController conditional parse --- vgui2/vgui_controls/AnimationController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vgui2/vgui_controls/AnimationController.cpp b/vgui2/vgui_controls/AnimationController.cpp index cee769a9..9f92a74a 100644 --- a/vgui2/vgui_controls/AnimationController.cpp +++ b/vgui2/vgui_controls/AnimationController.cpp @@ -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) // 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 ) ) {