mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-10 06:41:49 +00:00
Visual Mode: Take CenterHitbox property into account for thing heights.
This commit is contained in:
parent
78fd53417a
commit
3e4c6fe777
1 changed files with 1 additions and 1 deletions
|
@ -454,7 +454,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Check if above ceiling
|
||||
if(!nointeraction)
|
||||
{
|
||||
float maxz = sd.Ceiling.plane.GetZ(Thing.Position) - info.Height;
|
||||
float maxz = sd.Ceiling.plane.GetZ(Thing.Position) - (General.Map.SRB2 && info.CenterHitbox ? info.Height/2 : info.Height);
|
||||
if(pos.z > maxz) pos.z = Math.Max(minz, maxz);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue