From 5c8ef7bef1ff83a51e256fb98fccb9b28af7367b Mon Sep 17 00:00:00 2001 From: codeimp Date: Sat, 24 Jan 2009 18:44:39 +0000 Subject: [PATCH] no raising and lower of things in visual mode when using Doom map format --- Source/BuilderModes/VisualModes/BaseVisualThing.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Source/BuilderModes/VisualModes/BaseVisualThing.cs b/Source/BuilderModes/VisualModes/BaseVisualThing.cs index b1b413ea..63fa91d4 100644 --- a/Source/BuilderModes/VisualModes/BaseVisualThing.cs +++ b/Source/BuilderModes/VisualModes/BaseVisualThing.cs @@ -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