From b472601519a9ef85a3815a48108b63a5ca5c8e58 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 1 Oct 2024 22:19:36 +0200 Subject: [PATCH] relhell:: ads:: fixed a bug with incorrect crashing into walls --- rogueviz/ads/map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rogueviz/ads/map.cpp b/rogueviz/ads/map.cpp index 06b96722..7b3735db 100644 --- a/rogueviz/ads/map.cpp +++ b/rogueviz/ads/map.cpp @@ -484,7 +484,7 @@ void handle_crashes() { hyperpoint h1 = normalize(h); bool crashed = false; hybrid::in_actual([&] { - swap(h1[2], h1[3]); + h1[3] = h1[2]; h1[2] = 0; ads_point rel = ads_inverse(current * vctrV) * ads_point(h1, 0); cell *c = hybrid::get_at(vctr, 0); virtualRebase(c, rel.h);