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

This commit is contained in:
Zeno Rogue committed 2025-03-11 10:53:24 +01:00
1 parent dd782f6d32
commit ff7d230596
1 file changed
+2 -2
+2 -2
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;
}