From cc82c413cdb1d050948f1dea856c04d2908e958a Mon Sep 17 00:00:00 2001 From: DuckieTM Date: Sun, 15 Mar 2026 15:25:51 +0100 Subject: [PATCH] =?UTF-8?q?=E2=8F=AA=20oepsie=20removd=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eu/habbo/habbohotel/rooms/RoomLayout.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Emulator/src/main/java/com/eu/habbo/habbohotel/rooms/RoomLayout.java b/Emulator/src/main/java/com/eu/habbo/habbohotel/rooms/RoomLayout.java index 576ebf2e..f555eaa4 100644 --- a/Emulator/src/main/java/com/eu/habbo/habbohotel/rooms/RoomLayout.java +++ b/Emulator/src/main/java/com/eu/habbo/habbohotel/rooms/RoomLayout.java @@ -238,6 +238,22 @@ public class RoomLayout { return this.roomTiles[x][y].relativeHeight(); } + public double getFloorAltitude(int x, int y) { + short baseHeight = this.getHeightAtSquare(x, y); + int target = baseHeight + 1; + + for (int dy = -1; dy <= 1; dy++) { + for (int dx = -1; dx <= 1; dx++) { + if (dx == 0 && dy == 0) continue; + if (this.getHeightAtSquare(x + dx, y + dy) == target) { + return baseHeight + 0.5; + } + } + } + + return baseHeight; + } + public RoomTile getTile(short x, short y) { if (this.tileExists(x, y)) { return this.roomTiles[x][y];