mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-06-01 17:32:15 +00:00
Fixed, Thing info panel: fixed KeyNotFoundException when highlighted thing had unknown action.
Fixed: in some cases the number of generalized sector effects displayed in Sector info panel and action selector control was calculated incorrectly.
This commit is contained in:
parent
dc29b59fe8
commit
df90ef562c
2 changed files with 6 additions and 4 deletions
|
@ -964,6 +964,7 @@ namespace CodeImp.DoomBuilder.Config
|
||||||
{
|
{
|
||||||
title = option.Name + ": " + bit.Title;
|
title = option.Name + ": " + bit.Title;
|
||||||
matches++;
|
matches++;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,10 +79,11 @@ namespace CodeImp.DoomBuilder.Controls
|
||||||
ThingTypeInfo ti = General.Map.Data.GetThingInfo(t.Type);
|
ThingTypeInfo ti = General.Map.Data.GetThingInfo(t.Type);
|
||||||
|
|
||||||
// Get thing action information
|
// Get thing action information
|
||||||
LinedefActionInfo act = General.Map.Config.LinedefActions[t.Action];
|
LinedefActionInfo act;
|
||||||
if(General.Map.Config.LinedefActions.ContainsKey(t.Action)) actioninfo = act.ToString();
|
if(General.Map.Config.LinedefActions.ContainsKey(t.Action)) act = General.Map.Config.LinedefActions[t.Action];
|
||||||
else if(t.Action == 0) actioninfo = t.Action + " - None";
|
else if(t.Action == 0) act = new LinedefActionInfo(0, "None", true, false);
|
||||||
else actioninfo = t.Action + " - Unknown";
|
else act = new LinedefActionInfo(t.Action, "Unknown", false, false);
|
||||||
|
actioninfo = act.ToString();
|
||||||
|
|
||||||
// Determine z info to show
|
// Determine z info to show
|
||||||
t.DetermineSector();
|
t.DetermineSector();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue