mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-29 20:14:30 +00:00
rogueviz::seuphorica:: fixed a possible crash with portals
This commit is contained in:
1 parent
dd782f6d32
commit
ff7d230596
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user