mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 07:34:50 +00:00
- fixed state checking in A_Teleport.
This commit is contained in:
parent
48b65f3c76
commit
2a53ebb6b9
1 changed files with 3 additions and 4 deletions
|
@ -4246,17 +4246,16 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Teleport)
|
||||||
|
|
||||||
if (!(Flags & TF_NOJUMP))
|
if (!(Flags & TF_NOJUMP))
|
||||||
{
|
{
|
||||||
|
ACTION_SET_RESULT(false); // Jumps should never set the result for inventory state chains!
|
||||||
if (TeleportState == NULL)
|
if (TeleportState == NULL)
|
||||||
{
|
{
|
||||||
ACTION_SET_RESULT(false); // Jumps should never set the result for inventory state chains!
|
|
||||||
// Default to Teleport.
|
// Default to Teleport.
|
||||||
TeleportState = self->FindState("Teleport");
|
TeleportState = self->FindState("Teleport");
|
||||||
// If still nothing, then return.
|
// If still nothing, then return.
|
||||||
if (!TeleportState) return;
|
if (!TeleportState) return;
|
||||||
|
|
||||||
ACTION_JUMP(TeleportState);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
ACTION_JUMP(TeleportState);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ACTION_SET_RESULT(teleResult);
|
ACTION_SET_RESULT(teleResult);
|
||||||
|
|
Loading…
Reference in a new issue