diff --git a/Source/Core/Windows/ThingEditForm.cs b/Source/Core/Windows/ThingEditForm.cs index 7e4dd3c..a16551c 100644 --- a/Source/Core/Windows/ThingEditForm.cs +++ b/Source/Core/Windows/ThingEditForm.cs @@ -153,13 +153,17 @@ namespace CodeImp.DoomBuilder.Windows i *= 2; } - float z = General.GetByIndex(things, 0).Position.z; - foreach (Thing t in things) + if (General.Map.SRB2) { - if (t.Position.z != z) return ""; - } + float z = General.GetByIndex(things, 0).Position.z; + foreach (Thing t in things) + { + if (t.Position.z != z) return ""; + } - return (value + ((int)z << 4)).ToString(); + return (value + ((int)z << 4)).ToString(); + } + else return value.ToString(); } // This sets up the form to edit the given things