Only add Z position to flags value for SRB2

This commit is contained in:
MascaraSnake 2016-01-03 16:54:53 +01:00
parent d0c9aeb79d
commit 85c53c2d42

View file

@ -153,6 +153,8 @@ namespace CodeImp.DoomBuilder.Windows
i *= 2; i *= 2;
} }
if (General.Map.SRB2)
{
float z = General.GetByIndex(things, 0).Position.z; float z = General.GetByIndex(things, 0).Position.z;
foreach (Thing t in things) foreach (Thing t in things)
{ {
@ -161,6 +163,8 @@ namespace CodeImp.DoomBuilder.Windows
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 // This sets up the form to edit the given things
public void Setup(ICollection<Thing> things) public void Setup(ICollection<Thing> things)