mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 08:30:50 +00:00
- Tiny fix to ACS.
This commit is contained in:
parent
c6fd4c5aaf
commit
7bc2e5c67e
1 changed files with 4 additions and 4 deletions
|
@ -4760,13 +4760,13 @@ static void SetActorTeleFog(AActor *activator, int tid, FName telefogsrc, FName
|
||||||
if (activator != NULL)
|
if (activator != NULL)
|
||||||
{
|
{
|
||||||
check = PClass::FindClass(telefogsrc);
|
check = PClass::FindClass(telefogsrc);
|
||||||
if (check != NULL || !stricmp(telefogsrc, "none") || !stricmp(telefogsrc, "null"))
|
if (check == NULL || !stricmp(telefogsrc, "none") || !stricmp(telefogsrc, "null"))
|
||||||
activator->TeleFogSourceType = NULL;
|
activator->TeleFogSourceType = NULL;
|
||||||
else
|
else
|
||||||
activator->TeleFogSourceType = check;
|
activator->TeleFogSourceType = check;
|
||||||
|
|
||||||
check = PClass::FindClass(telefogdest);
|
check = PClass::FindClass(telefogdest);
|
||||||
if (check != NULL || !stricmp(telefogdest, "none") || !stricmp(telefogdest, "null"))
|
if (check == NULL || !stricmp(telefogdest, "none") || !stricmp(telefogdest, "null"))
|
||||||
activator->TeleFogDestType = NULL;
|
activator->TeleFogDestType = NULL;
|
||||||
else
|
else
|
||||||
activator->TeleFogDestType = check;
|
activator->TeleFogDestType = check;
|
||||||
|
@ -4780,13 +4780,13 @@ static void SetActorTeleFog(AActor *activator, int tid, FName telefogsrc, FName
|
||||||
while ((actor = iterator.Next()))
|
while ((actor = iterator.Next()))
|
||||||
{
|
{
|
||||||
check = PClass::FindClass(telefogsrc);
|
check = PClass::FindClass(telefogsrc);
|
||||||
if (check != NULL || !stricmp(telefogsrc, "none") || !stricmp(telefogsrc, "null"))
|
if (check == NULL || !stricmp(telefogsrc, "none") || !stricmp(telefogsrc, "null"))
|
||||||
actor->TeleFogSourceType = NULL;
|
actor->TeleFogSourceType = NULL;
|
||||||
else
|
else
|
||||||
actor->TeleFogSourceType = check;
|
actor->TeleFogSourceType = check;
|
||||||
|
|
||||||
check = PClass::FindClass(telefogdest);
|
check = PClass::FindClass(telefogdest);
|
||||||
if (check != NULL || !stricmp(telefogdest, "none") || !stricmp(telefogdest, "null"))
|
if (check == NULL || !stricmp(telefogdest, "none") || !stricmp(telefogdest, "null"))
|
||||||
actor->TeleFogDestType = NULL;
|
actor->TeleFogDestType = NULL;
|
||||||
else
|
else
|
||||||
actor->TeleFogDestType = check;
|
actor->TeleFogDestType = check;
|
||||||
|
|
Loading…
Reference in a new issue