mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-08 17:53:00 +00:00
rogueviz::seuphorica:: fixed a possible crash with portals
This commit is contained in:
@@ -227,8 +227,8 @@ void thru_portal(coord& x, vect2& v) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto x1 = portals.at(x);
|
auto x1 = portals.at(x);
|
||||||
v.spin -= tile_orientation[x].spin;
|
v -= tile_orientation[x].spin;
|
||||||
v.spin += tile_orientation[x1].spin;
|
v += tile_orientation[x1].spin;
|
||||||
v.at = x1;
|
v.at = x1;
|
||||||
x = x1;
|
x = x1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user