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
1 changed files with 9 additions and 5 deletions

View File

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