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:
parent
dd782f6d32
commit
ff7d230596
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user