- Implemented ZScript abstract functions
This commit is contained in:
parent
628d23a688
commit
761dea8640
9 changed files with 82 additions and 22 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue