- rename ZSprites to VisualThinkers
This commit is contained in:
parent
c42b51d5eb
commit
4b54aac288
13 changed files with 79 additions and 79 deletions
|
|
@ -926,9 +926,9 @@ static DObject *BuiltinNewDoom(PClass *cls, int outerside, int backwardscompatib
|
|||
ThrowAbortException(X_OTHER, "Cannot create actors with 'new'");
|
||||
return nullptr;
|
||||
}
|
||||
if (cls->IsDescendantOf(NAME_ZSprite)) // Same for ZSprites.
|
||||
if (cls->IsDescendantOf(NAME_VisualThinker)) // Same for VisualThinkers.
|
||||
{
|
||||
ThrowAbortException(X_OTHER, "Cannot create ZSprite or inheriting classes with 'new'. Use 'ZSprite.Spawn' instead.");
|
||||
ThrowAbortException(X_OTHER, "Cannot create VisualThinker or inheriting classes with 'new'. Use 'VisualThinker.Spawn' instead.");
|
||||
return nullptr;
|
||||
}
|
||||
if ((vm_warnthinkercreation || !backwardscompatible) && cls->IsDescendantOf(NAME_Thinker))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue