mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
Self-inheritance of ZScript classes is now considered an error and not a warning
This commit is contained in:
parent
d3b90f4f50
commit
e8cc2f9801
1 changed files with 1 additions and 6 deletions
|
@ -84,7 +84,7 @@ namespace CodeImp.DoomBuilder.ZDoom
|
|||
|
||||
if(_pname == _pstruct.ClassName.ToLowerInvariant())
|
||||
{
|
||||
Parser.LogWarning("Class \"" + _pstruct.ClassName + "\" is trying to inherit from itself. Class is being skipped.");
|
||||
Parser.ReportError("Class \"" + _pstruct.ClassName + "\" is trying to inherit from itself. Class is being skipped.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1004,11 +1004,6 @@ namespace CodeImp.DoomBuilder.ZDoom
|
|||
Dictionary<int, ThingTypeInfo> things = General.Map.Config.GetThingTypes();
|
||||
foreach (ZScriptClassStructure cls in allclasseslist)
|
||||
{
|
||||
if (cls.ClassName == "zombiefoddergoodsoul")
|
||||
{
|
||||
int x = 123;
|
||||
}
|
||||
|
||||
ActorStructure actor = cls.Actor;
|
||||
if (actor != null)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue