mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 12:50:52 +00:00
Fix incorrect ceiling height check for things with centered hitbox
This commit is contained in:
parent
66965674a6
commit
af8b070363
1 changed files with 1 additions and 1 deletions
|
@ -483,7 +483,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Check if above ceiling
|
||||
if(!nointeraction)
|
||||
{
|
||||
double maxz = sd.Ceiling.plane.GetZ(Thing.Position) - info.Height;
|
||||
double maxz = sd.Ceiling.plane.GetZ(Thing.Position) - (info.CenterHitbox ? info.Height / 2 : info.Height);
|
||||
if(pos.z > maxz) pos.z = Math.Max(minz, maxz);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue