- got rid of checkType.

This commit is contained in:
Christoph Oelckers 2022-12-14 22:21:51 +01:00
parent 87bccb8933
commit 3dd87cfd7f
3 changed files with 1 additions and 9 deletions

View file

@ -732,13 +732,6 @@ DEFINE_ACTION_FUNCTION(DDukeActor, attackerflag2)
ACTION_RETURN_BOOL(!!attackerflag(self, EDukeFlags2::FromInt(mask)));
}
DEFINE_ACTION_FUNCTION(DDukeActor, checktype) // for temporary checking of types that haven't been ported yet.
{
PARAM_SELF_PROLOGUE(DDukeActor);
PARAM_STRING(name);
ACTION_RETURN_BOOL(self->spr.picnum == tileForName(name));
}
//---------------------------------------------------------------------------
//

View file

@ -19,7 +19,7 @@ class DukeFireflyFlyingEffect : DukeActor
let Owner = self.ownerActor;
if (!Owner || !Owner.checkType("FIREFLY"))
if (!Owner || !(Owner is 'DukeFirefly'))
{
self.Destroy();
return;

View file

@ -250,7 +250,6 @@ class DukeActor : CoreActor native
native int actorflag3(int mask);
native int attackerflag1(int mask);
native int attackerflag2(int mask);
deprecated("4.9") native bool checktype(String name); // this must not stay in the code, so mark it deprecated to keep the annoying warning at startup.