mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-05-31 00:51:37 +00:00
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:
parent
3e5f85dc8f
commit
21889a98e7
3 changed files with 17 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue