From e991a01b5007bfb02a7738a653a3a122e1d4b2e2 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 18 Oct 2023 20:21:26 -0500 Subject: [PATCH] final touch up --- src/engine/objects/AbstractCharacter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/objects/AbstractCharacter.java b/src/engine/objects/AbstractCharacter.java index eddf8ba6..03aebf86 100644 --- a/src/engine/objects/AbstractCharacter.java +++ b/src/engine/objects/AbstractCharacter.java @@ -993,6 +993,8 @@ public abstract class AbstractCharacter extends AbstractWorldObject { //look for region in the building we are in for (Regions regionCycle : building.getBounds().getRegions()) { float regionHeight = regionCycle.highLerp.y - regionCycle.lowLerp.y; + if(regionHeight < 10) + regionHeight = 10; if (regionCycle.isPointInPolygon(value) && Math.abs(regionCycle.highLerp.y - value.y) < regionHeight) region = regionCycle; }