Can't call TeleportSpecial directly from a state

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 a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Can't call TeleportSpecial directly from a state

Re: Can't call TeleportSpecial directly from a state

by Graf Zahl » Sun Apr 19, 2020 9:59 am

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

Re: Can't call TeleportSpecial directly from a state

by _mental_ » Wed Feb 13, 2019 9:54 am

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?

Can't call TeleportSpecial directly from a state

by Blue Shadow » Tue Feb 12, 2019 8:16 am

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); }

Top