mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-25 05:11:56 +00:00
Fix small error in light/fade alpha and fade end field handling
This commit is contained in:
parent
1691b4a395
commit
5e330496ad
1 changed files with 3 additions and 3 deletions
|
@ -753,16 +753,16 @@ namespace CodeImp.DoomBuilder.Windows
|
|||
UniFields.SetString(s.Fields, "triggerer", triggerer.Text, TRIGGERER_DEFAULT);
|
||||
|
||||
if (!string.IsNullOrEmpty(lightAlpha.Text))
|
||||
UniFields.SetInteger(s.Fields, "lightalpha", lightAlpha.GetResult(s.Fields.GetValue("lightalpha", General.Map.Config.MaxColormapAlpha)), 0);
|
||||
UniFields.SetInteger(s.Fields, "lightalpha", lightAlpha.GetResult(s.Fields.GetValue("lightalpha", General.Map.Config.MaxColormapAlpha)), General.Map.Config.MaxColormapAlpha);
|
||||
|
||||
if (!string.IsNullOrEmpty(fadeAlpha.Text))
|
||||
UniFields.SetInteger(s.Fields, "fadealpha", fadeAlpha.GetResult(s.Fields.GetValue("fadealpha", General.Map.Config.MaxColormapAlpha)), 0);
|
||||
UniFields.SetInteger(s.Fields, "fadealpha", fadeAlpha.GetResult(s.Fields.GetValue("fadealpha", General.Map.Config.MaxColormapAlpha)), General.Map.Config.MaxColormapAlpha);
|
||||
|
||||
if (!string.IsNullOrEmpty(fadeStart.Text))
|
||||
UniFields.SetInteger(s.Fields, "fadestart", fadeStart.GetResult(s.Fields.GetValue("fadestart", 0)), 0);
|
||||
|
||||
if (!string.IsNullOrEmpty(fadeEnd.Text))
|
||||
UniFields.SetInteger(s.Fields, "fadeend", fadeEnd.GetResult(s.Fields.GetValue("fadeend", General.Map.Config.NumBrightnessLevels - 1)), 0);
|
||||
UniFields.SetInteger(s.Fields, "fadeend", fadeEnd.GetResult(s.Fields.GetValue("fadeend", General.Map.Config.NumBrightnessLevels - 1)), General.Map.Config.NumBrightnessLevels - 1);
|
||||
|
||||
// Clear horizontal slopes
|
||||
double diff = Math.Abs(Math.Round(s.FloorSlopeOffset) - s.FloorSlopeOffset);
|
||||
|
|
Loading…
Reference in a new issue