mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-25 14:25:32 +03:00
Fixed negated conditionals not being recognized by hudanimations.txt
This commit is contained in:
parent
7b836ece91
commit
ccdc1719ae
@ -357,7 +357,12 @@ 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);
|
||||||
|
#ifdef MAPBASE
|
||||||
|
// Fixes ! conditionals
|
||||||
|
if ( Q_stristr( token, "[$" ) || Q_stristr( token, "[!$" ) )
|
||||||
|
#else
|
||||||
if ( Q_stristr( token, "[$" ) )
|
if ( Q_stristr( token, "[$" ) )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
bAccepted = EvaluateConditional( token );
|
bAccepted = EvaluateConditional( token );
|
||||||
|
|
||||||
@ -622,7 +627,12 @@ 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);
|
||||||
|
#ifdef MAPBASE
|
||||||
|
// Fixes ! conditionals
|
||||||
|
if ( Q_stristr( token, "[$" ) || Q_stristr( token, "[!$" ) )
|
||||||
|
#else
|
||||||
if ( Q_stristr( token, "[$" ) )
|
if ( Q_stristr( token, "[$" ) )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
if ( !EvaluateConditional( token ) )
|
if ( !EvaluateConditional( token ) )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user