mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- added APROP_Dormant actor property for ACS (read only!)
- fixed_ When performing a restart menus and intermissions need to be closed first. SVN r3048 (trunk)
This commit is contained in:
parent
7e503d2f70
commit
19b8e15af4
2 changed files with 6 additions and 0 deletions
|
@ -2336,6 +2336,9 @@ void D_DoomMain (void)
|
|||
S_StopMusic(true);
|
||||
S_StopAllChannels ();
|
||||
|
||||
M_ClearMenus(); // close menu if open
|
||||
F_EndFinale(); // If an intermission is active, end it now
|
||||
|
||||
// clean up game state
|
||||
ST_Clear();
|
||||
D_ErrorCleanup ();
|
||||
|
|
|
@ -2541,6 +2541,7 @@ enum
|
|||
APROP_WaterLevel = 28,
|
||||
APROP_ScaleX = 29,
|
||||
APROP_ScaleY = 30,
|
||||
APROP_Dormant = 31,
|
||||
};
|
||||
|
||||
// These are needed for ACS's APROP_RenderStyle
|
||||
|
@ -2769,6 +2770,7 @@ int DLevelScript::GetActorProperty (int tid, int property)
|
|||
case APROP_Friendly: return !!(actor->flags & MF_FRIENDLY);
|
||||
case APROP_Notarget: return !!(actor->flags3 & MF3_NOTARGET);
|
||||
case APROP_Notrigger: return !!(actor->flags6 & MF6_NOTRIGGER);
|
||||
case APROP_Dormant: return !!(actor->flags2 & MF2_DORMANT);
|
||||
case APROP_SpawnHealth: if (actor->IsKindOf (RUNTIME_CLASS (APlayerPawn)))
|
||||
{
|
||||
return static_cast<APlayerPawn *>(actor)->MaxHealth;
|
||||
|
@ -2838,6 +2840,7 @@ int DLevelScript::CheckActorProperty (int tid, int property, int value)
|
|||
case APROP_Friendly:
|
||||
case APROP_Notarget:
|
||||
case APROP_Notrigger:
|
||||
case APROP_Dormant:
|
||||
return (GetActorProperty(tid, property) == (!!value));
|
||||
|
||||
// Strings are not covered by GetActorProperty, so make the check here
|
||||
|
|
Loading…
Reference in a new issue