- rename ZSprites to VisualThinkers

This commit is contained in:
Rachael Alexanderson 2023-11-22 11:29:49 -05:00
commit 4b54aac288
13 changed files with 79 additions and 79 deletions

View file

@ -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))