mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 16:07:55 +00:00
Merge branch 'master' of https://github.com/rheit/zdoom
This commit is contained in:
commit
2205ca606f
2 changed files with 23 additions and 1 deletions
|
@ -4260,6 +4260,7 @@ enum EACSFunctions
|
||||||
ACSF_CheckFlag,
|
ACSF_CheckFlag,
|
||||||
ACSF_SetLineActivation,
|
ACSF_SetLineActivation,
|
||||||
ACSF_GetLineActivation,
|
ACSF_GetLineActivation,
|
||||||
|
ACSF_GetActorPowerupTics,
|
||||||
|
|
||||||
// ZDaemon
|
// ZDaemon
|
||||||
ACSF_GetTeamScore = 19620, // (int team)
|
ACSF_GetTeamScore = 19620, // (int team)
|
||||||
|
@ -5325,6 +5326,27 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ACSF_GetActorPowerupTics:
|
||||||
|
if (argCount >= 2)
|
||||||
|
{
|
||||||
|
const PClass *powerupclass = PClass::FindClass(FBehavior::StaticLookupString(args[1]));
|
||||||
|
if (powerupclass == NULL || !RUNTIME_CLASS(APowerup)->IsAncestorOf(powerupclass))
|
||||||
|
{
|
||||||
|
Printf("'%s' is not a type of Powerup.\n", FBehavior::StaticLookupString(args[1]));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
AActor *actor = SingleActorFromTID(args[0], activator);
|
||||||
|
if (actor != NULL)
|
||||||
|
{
|
||||||
|
APowerup* powerup = (APowerup*)actor->FindInventory(powerupclass);
|
||||||
|
if (powerup != NULL)
|
||||||
|
return powerup->EffectTics;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -198,7 +198,7 @@ int FDirectory::AddDirectory(const char *dirpath)
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(__sun)
|
#elif defined(__sun) || defined(__APPLE__)
|
||||||
|
|
||||||
int FDirectory::AddDirectory(const char *dirpath)
|
int FDirectory::AddDirectory(const char *dirpath)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue