Added, Visual mode: added support for "Change Floor Brightness to this Brightness" and "Change Ceiling Brightness to this Brightness" Boom actions.

Changed, Sectors mode: "Flip Linedefs" and "Align Linedefs" actions will no longer flip single-sided linedefs with only front side.
Fixed, Script Editor: fixed a crash when trying to update script navigator combo box when switching to a never saved ACS script.
This commit is contained in:
MaxED 2016-07-20 19:17:31 +00:00 committed by spherallic
parent f8fb7eb057
commit 1050f80c52
5 changed files with 19 additions and 9 deletions

View file

@ -107,7 +107,8 @@ floor
213
{
title = "Floor Change Brightness to this Brightness";
title = "Change Floor Brightness to this Brightness";
id = "Boom_Transfer_FloorLight";
prefix = "";
}
@ -641,7 +642,8 @@ ceiling
261
{
title = "Ceiling Brightness to this Brightness";
title = "Change Ceiling Brightness to this Brightness";
id = "Boom_Transfer_CeilingLight";
prefix = "";
}
}

View file

@ -551,6 +551,7 @@ constants
APROP_Damage;
APROP_DamageFactor;
APROP_DamageMultiplier;
APROP_DamageType;
APROP_DeathSound;
APROP_Dormant;
APROP_Dropped;

View file

@ -1174,6 +1174,7 @@ constants
DMSS_EXFILTER;
DMSS_EXSPECIES;
DMSS_EITHER;
DMSS_INFLICTORDMGTYPE;
FMDF_NOPITCH;
FMDF_NOANGLE;
FMDF_INTERPOLATE;

View file

@ -2327,8 +2327,12 @@ namespace CodeImp.DoomBuilder.Geometry
{
foreach(Linedef l in frontlines)
{
l.FlipVertices();
l.FlipSidedefs();
// Skip single-sided lines with only front side
if(l.Back != null)
{
l.FlipVertices();
l.FlipSidedefs();
}
}
}
}

View file

@ -2723,13 +2723,13 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Make undo
if(selected.Count > 1)
{
General.Map.UndoRedo.CreateUndo("Align linedefs of " + selected.Count + " sectors");
General.Interface.DisplayStatus(StatusType.Action, "Aligned linedefs of " + selected.Count + "sectors.");
General.Map.UndoRedo.CreateUndo("Flip linedefs of " + selected.Count + " sectors");
General.Interface.DisplayStatus(StatusType.Action, "Flipped linedefs of " + selected.Count + "sectors.");
}
else
{
General.Map.UndoRedo.CreateUndo("Align sector linedefs");
General.Interface.DisplayStatus(StatusType.Action, "Aligned sector linedefs.");
General.Map.UndoRedo.CreateUndo("Flip sector linedefs");
General.Interface.DisplayStatus(StatusType.Action, "Flipped sector linedefs.");
}
HashSet<Linedef> selectedlines = new HashSet<Linedef>();
@ -2737,7 +2737,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
{
foreach(Sidedef side in s.Sidedefs)
{
if(!selectedlines.Contains(side.Line)) selectedlines.Add(side.Line);
// Skip single-sided lines with only front side
if(!selectedlines.Contains(side.Line) && (side.Line.Back != null || side.Line.Front == null))
selectedlines.Add(side.Line);
}
}