mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 21:41:03 +00:00
- relaxed caller type check for states modified by Dehacked
https://forum.zdoom.org/viewtopic.php?t=63178
This commit is contained in:
parent
def5571b36
commit
53a644512a
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ void FState::CheckCallerType(AActor *self, AActor *stateowner)
|
||||||
{
|
{
|
||||||
ThrowAbortException(X_OTHER, "%s called without valid caller. %s expected", ActionFunc->PrintableName.GetChars(), cls->TypeName.GetChars());
|
ThrowAbortException(X_OTHER, "%s called without valid caller. %s expected", ActionFunc->PrintableName.GetChars(), cls->TypeName.GetChars());
|
||||||
}
|
}
|
||||||
if (!check->IsKindOf(cls))
|
if (!(StateFlags & STF_DEHACKED) && !check->IsKindOf(cls))
|
||||||
{
|
{
|
||||||
ThrowAbortException(X_OTHER, "Invalid class %s in function call to %s. %s expected", check->GetClass()->TypeName.GetChars(), ActionFunc->PrintableName.GetChars(), cls->TypeName.GetChars());
|
ThrowAbortException(X_OTHER, "Invalid class %s in function call to %s. %s expected", check->GetClass()->TypeName.GetChars(), ActionFunc->PrintableName.GetChars(), cls->TypeName.GetChars());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue