Can't call TeleportSpecial directly from a state

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
Blue Shadow
Posts: 5040
Joined: Sun Nov 14, 2010 12:59 am

Can't call TeleportSpecial directly from a state

Post by Blue Shadow »

Tested with: 3.7.2 (64-bit)
Test material: https://www.dropbox.com/s/57fr3yvt7idrg ... o.pk3?dl=1


Remember this? Yeah, when calling that special directly from a state, like this:

Code: Select all

BLAH A 35 TeleportSpecial(1, 0, 0);
GZDoom aborts on launch with this error:

Code: Select all

TeleportSpecial: action function not found in <name_of_calling_actor_class>
If I wrap the call to the special in a function, I don't get any errors:

Code: Select all

BLAH A 35 { TeleportSpecial(1, 0, 0); }
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Can't call TeleportSpecial directly from a state

Post by _mental_ »

That's because P_FindLineSpecial() knows nothing about TeleportSpecial -> Teleport aliasing.
Not sure, is it better to extend the function or just add an extra condition at its call site?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49225
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Can't call TeleportSpecial directly from a state

Post by Graf Zahl »

Checking it in P_FindLineSpecial makes more sense because it covers all eventualities.
Post Reply

Return to “Closed Bugs [GZDoom]”