mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-30 07:31:36 +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
|
//and for actors defined in DECORATE
|
||||||
ICollection<ActorStructure> ac = General.Map.Data.Decorate.Actors;
|
ICollection<ActorStructure> ac = General.Map.Data.Decorate.Actors;
|
||||||
foreach (ActorStructure actor in General.Map.Data.Decorate.Actors)
|
foreach (ActorStructure actor in ac) {
|
||||||
Actors.Add(actor.ClassName.ToLower(), actor.DoomEdNum);
|
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>();
|
Dictionary<string, ModelDefEntry> modelDefEntriesByName = new Dictionary<string, ModelDefEntry>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue