1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-25 10:57:59 +00:00

fixed through_wall

This commit is contained in:
Zeno Rogue
2022-10-27 10:33:47 +02:00
parent 18f571b683
commit 64a613572a
2 changed files with 5 additions and 5 deletions

View File

@@ -546,7 +546,7 @@ EX void shift_view_portal(hyperpoint H) {
EX const connection_data* through_portal() {
transmatrix iView = view_inverse(View);
int nei = through_wall(iView * C0);
int nei = through_wall(centerover, iView * C0);
if(nei == -1) return nullptr;
auto cw1 = cellwalker(centerover, nei);
return at_or_null(connections, cw1);