1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-18 06:30:41 +00:00

relhell:: ads:: fixed a bug with incorrect crashing into walls

This commit is contained in:
Zeno Rogue 2024-10-01 22:19:36 +02:00
parent 9190963d56
commit b472601519

View File

@ -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);