From ec425c768b59806d4cae9333b934351d185d2432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Kapu=C5=9Bci=C5=84ski?= Date: Sat, 9 Jul 2022 16:47:59 +0200 Subject: [PATCH] Use the Y floor coordinate from topo() so it doesn't ignore spaceship's modified floor height --- src/level/robotmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/level/robotmain.cpp b/src/level/robotmain.cpp index e4693680..27d09873 100644 --- a/src/level/robotmain.cpp +++ b/src/level/robotmain.cpp @@ -4142,7 +4142,7 @@ bool CRobotMain::FreeSpace(Math::Vector ¢er, float minRadius, float maxRadiu pos.x = p.x; pos.z = p.y; pos.y = 0.0f; - m_terrain->AdjustToFloor(pos, true); + pos.y = m_terrain->GetFloorLevel(pos); if (!BlockedByObject(m_objMan.get(), pos, space, exclu)) { float flat = m_terrain->GetFlatZoneRadius(pos, space);