mirror of
https://github.com/ZDoom/Raze.git
synced 2025-04-07 16:31:26 +00:00
- got rid of checkType.
This commit is contained in:
parent
87bccb8933
commit
3dd87cfd7f
3 changed files with 1 additions and 9 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
|
|
@ -19,7 +19,7 @@ class DukeFireflyFlyingEffect : DukeActor
|
|||
|
||||
|
||||
let Owner = self.ownerActor;
|
||||
if (!Owner || !Owner.checkType("FIREFLY"))
|
||||
if (!Owner || !(Owner is 'DukeFirefly'))
|
||||
{
|
||||
self.Destroy();
|
||||
return;
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue