mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
no raising and lower of things in visual mode when using Doom map format
This commit is contained in:
parent
37317fb991
commit
5c8ef7bef1
1 changed files with 7 additions and 4 deletions
|
@ -372,12 +372,15 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Raise/lower thing
|
||||
public virtual void OnChangeTargetHeight(int amount)
|
||||
{
|
||||
if((General.Map.UndoRedo.NextUndo == null) || (General.Map.UndoRedo.NextUndo.TicketID != undoticket))
|
||||
undoticket = General.Map.UndoRedo.CreateUndo("Change thing height");
|
||||
if(General.Map.FormatInterface.GetType().Name != "DoomMapSetIO")
|
||||
{
|
||||
if((General.Map.UndoRedo.NextUndo == null) || (General.Map.UndoRedo.NextUndo.TicketID != undoticket))
|
||||
undoticket = General.Map.UndoRedo.CreateUndo("Change thing height");
|
||||
|
||||
Thing.Move(Thing.Position + new Vector3D(0.0f, 0.0f, (float)amount));
|
||||
Thing.Move(Thing.Position + new Vector3D(0.0f, 0.0f, (float)amount));
|
||||
|
||||
this.Setup();
|
||||
this.Setup();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue