mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- do not allow summon CCMD to spawn abstract classes
This commit is contained in:
parent
165d9951aa
commit
bf8305062a
1 changed files with 5 additions and 0 deletions
|
@ -707,6 +707,11 @@ static void SummonActor (int command, int command2, FCommandLine argv)
|
||||||
Printf ("Unknown actor '%s'\n", argv[1]);
|
Printf ("Unknown actor '%s'\n", argv[1]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (type->bAbstract)
|
||||||
|
{
|
||||||
|
Printf("Cannot instantiate abstract class %s\n", argv[1]);
|
||||||
|
return;
|
||||||
|
}
|
||||||
Net_WriteByte (argv.argc() > 2 ? command2 : command);
|
Net_WriteByte (argv.argc() > 2 ? command2 : command);
|
||||||
Net_WriteString (type->TypeName.GetChars());
|
Net_WriteString (type->TypeName.GetChars());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue