Default thing arguments were not set when creating a new thing, only when changing thing type in Edit Things window.

This commit is contained in:
MaxED 2014-02-21 15:24:54 +00:00
parent 3e5f85dc8f
commit 21889a98e7
3 changed files with 17 additions and 14 deletions

View file

@ -1358,11 +1358,9 @@ namespace CodeImp.DoomBuilder.Data
// Return from config
return thingtypes[thingtype];
}
else
{
// Create unknown thing info
return new ThingTypeInfo(thingtype);
}
// Create unknown thing info
return new ThingTypeInfo(thingtype);
}
// This gets thing information by index
@ -1375,11 +1373,9 @@ namespace CodeImp.DoomBuilder.Data
// Return from config
return thingtypes[thingtype];
}
else
{
// No such thing type known
return null;
}
// No such thing type known
return null;
}
#endregion