1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-04-07 11:17:00 +00:00

rogueviz::seuphorica:: fixed a possible crash with portals

This commit is contained in:
Zeno Rogue 2025-03-11 10:53:24 +01:00
parent dd782f6d32
commit ff7d230596

View File

@ -227,8 +227,8 @@ void thru_portal(coord& x, vect2& v) {
}
}
auto x1 = portals.at(x);
v.spin -= tile_orientation[x].spin;
v.spin += tile_orientation[x1].spin;
v -= tile_orientation[x].spin;
v += tile_orientation[x1].spin;
v.at = x1;
x = x1;
}