Fixed negated conditionals not being recognized by hudanimations.txt

This commit is contained in:
Blixibon 2022-10-16 15:16:02 -05:00
parent 7b836ece91
commit ccdc1719ae

View File

@ -357,7 +357,12 @@ bool AnimationController::ParseScriptFile(char *pMem, int length)
// get the open brace or a conditional
pMem = ParseFile(pMem, token, NULL);
#ifdef MAPBASE
// Fixes ! conditionals
if ( Q_stristr( token, "[$" ) || Q_stristr( token, "[!$" ) )
#else
if ( Q_stristr( token, "[$" ) )
#endif
{
bAccepted = EvaluateConditional( token );
@ -622,7 +627,12 @@ bool AnimationController::ParseScriptFile(char *pMem, int length)
// Look ahead one token for a conditional
char *peek = ParseFile(pMem, token, NULL);
#ifdef MAPBASE
// Fixes ! conditionals
if ( Q_stristr( token, "[$" ) || Q_stristr( token, "[!$" ) )
#else
if ( Q_stristr( token, "[$" ) )
#endif
{
if ( !EvaluateConditional( token ) )
{