- Implemented ZScript abstract functions

This commit is contained in:
Player701 2020-10-10 11:24:49 +03:00 committed by Christoph Oelckers
commit 761dea8640
9 changed files with 82 additions and 22 deletions

View file

@ -4626,6 +4626,12 @@ AActor *AActor::StaticSpawn(FLevelLocals *Level, PClassActor *type, const DVecto
{
I_Error("Tried to spawn a class-less actor\n");
}
else if (type->bAbstract)
{
// [Player701] Abstract actors cannot be spawned by any means
Printf("Attempt to spawn an instance of abstract actor class %s\n", type->TypeName.GetChars());
return nullptr;
}
if (allowreplacement)
{