mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
Fixed: added more sprite name sanity checks to MODELDF parser.
This commit is contained in:
parent
c4518c60a2
commit
1e7f0e6bc5
1 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,8 @@ namespace CodeImp.DoomBuilder.ZDoom
|
|||
ThingTypeInfo info = General.Map.Data.GetThingInfoEx(actorsbyclass[classname]);
|
||||
|
||||
// Actor has a valid sprite?
|
||||
if(info != null && !string.IsNullOrEmpty(info.Sprite) && !info.Sprite.ToLowerInvariant().StartsWith(DataManager.INTERNAL_PREFIX))
|
||||
if(info != null && !string.IsNullOrEmpty(info.Sprite) && !info.Sprite.ToLowerInvariant().StartsWith(DataManager.INTERNAL_PREFIX)
|
||||
&& (info.Sprite.Length == 6 || info.Sprite.Length == 8))
|
||||
{
|
||||
string targetsprite = info.Sprite.Substring(0, 5);
|
||||
if(mds.Frames.ContainsKey(targetsprite))
|
||||
|
|
Loading…
Reference in a new issue