From 94fd56b6bdde9cb26e5e89f1dc04474dc261d627 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 17 Oct 2010 08:02:04 +0000 Subject: [PATCH] - added option for the cast call to use a 'Death.Cast' sequence so that monsters with an unusable death sequence for the cast call can define an alternative. SVN r2952 (trunk) --- src/intermission/intermission.cpp | 4 +++- src/namedef.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/intermission/intermission.cpp b/src/intermission/intermission.cpp index 74a98a6a2b..8448bf0033 100644 --- a/src/intermission/intermission.cpp +++ b/src/intermission/intermission.cpp @@ -433,7 +433,9 @@ int DIntermissionScreenCast::Responder (event_t *ev) return 1; // already in dying frames castdeath = true; - caststate = mClass->ActorInfo->FindState(NAME_Death); + + FName label[] = {NAME_Death, NAME_Cast}; + caststate = mClass->ActorInfo->FindState(2, label); if (caststate == NULL) return -1; casttics = caststate->GetTics(); diff --git a/src/namedef.h b/src/namedef.h index c9168fed30..2405da0fd5 100644 --- a/src/namedef.h +++ b/src/namedef.h @@ -186,6 +186,7 @@ xx(Greetings) xx(Idle) xx(GenericFreezeDeath) xx(GenericCrush) +xx(Cast) // Compatible death names for the decorate parser. xx(XDeath)