CANRAISE state definition

CANRAISE state for allowing a monster to be resurrected without an
infinite frame
This commit is contained in:
Edward Richardson 2014-04-12 22:02:19 +12:00
commit 4270838613
3 changed files with 13 additions and 2 deletions

View file

@ -2527,8 +2527,9 @@ static bool P_CheckForResurrection(AActor *self, bool usevilestates)
if (!(corpsehit->flags & MF_CORPSE) )
continue; // not a monster
if (corpsehit->tics != -1)
continue; // not lying still yet
if (corpsehit->tics != -1 && // not lying still yet
!corpsehit->state->GetCanRaise()) // or not ready to be raised yet
continue;
raisestate = corpsehit->FindState(NAME_Raise);
if (raisestate == NULL)