From 1cbaa24f963ade1b136a3fb7a5a5b0c97338670d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 22 Sep 2008 20:42:11 +0000 Subject: [PATCH] - last commit was missing one file. SVN r1244 (trunk) --- src/thingdef/thingdef_codeptr.cpp | 45 ------------------------------- 1 file changed, 45 deletions(-) diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index 4e52acbfe8..85bd5c8adc 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -354,51 +354,6 @@ DEFINE_ACTION_FUNCTION(AActor, A_BulletAttack) } -//========================================================================== -// -// Resolves a label parameter -// -//========================================================================== - -FState *P_GetState(AActor *self, FState *CallingState, int offset) -{ - if (offset == 0 || offset == INT_MIN) - { - return NULL; // 0 means 'no state' - } - else if (offset>0) - { - if (CallingState == NULL) return NULL; - return CallingState + offset; - } - else if (self != NULL) - { - offset = -offset; - - FName classname = JumpParameters[offset]; - const PClass *cls; - cls = classname==NAME_None? RUNTIME_TYPE(self) : PClass::FindClass(classname); - if (cls==NULL || cls->ActorInfo==NULL) return NULL; // shouldn't happen - - int numnames = (int)JumpParameters[offset+1]; - FState *jumpto = cls->ActorInfo->FindState(numnames, &JumpParameters[offset+2]); - if (jumpto == NULL) - { - const char *dot=""; - Printf("Jump target '"); - if (classname != NAME_None) Printf("%s::", classname.GetChars()); - for (int i=0;iGetClass()->TypeName.GetChars()); - } - return jumpto; - } - else return NULL; -} - //========================================================================== // // Do the state jump