mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
GZDoomBuilder 1.05b:
Actors, which can't be placed in editing mode aren't added to MODELDEF override list, thus preventing crash on map open.
This commit is contained in:
parent
14e6c959bd
commit
5d58612d05
1 changed files with 4 additions and 2 deletions
|
@ -110,8 +110,10 @@ namespace CodeImp.DoomBuilder.GZBuilder
|
|||
|
||||
//and for actors defined in DECORATE
|
||||
ICollection<ActorStructure> ac = General.Map.Data.Decorate.Actors;
|
||||
foreach (ActorStructure actor in General.Map.Data.Decorate.Actors)
|
||||
Actors.Add(actor.ClassName.ToLower(), actor.DoomEdNum);
|
||||
foreach (ActorStructure actor in ac) {
|
||||
if (actor.DoomEdNum != -1) //we don't need actors without DoomEdNum
|
||||
Actors.Add(actor.ClassName.ToLower(), actor.DoomEdNum);
|
||||
}
|
||||
|
||||
Dictionary<string, ModelDefEntry> modelDefEntriesByName = new Dictionary<string, ModelDefEntry>();
|
||||
|
||||
|
|
Loading…
Reference in a new issue