1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-07-04 10:42:51 +00:00

rogueviz::seuphorica::yet another mirror fix

This commit is contained in:
Zeno Rogue 2025-03-11 11:35:45 +01:00
parent 3897c9f6ba
commit 32fd60350a

View File

@ -241,7 +241,7 @@ void mirror(coord& at, vect2& prev) {
vector<int> reindex = {0,3,6,1,4,7,2,5,8}; vector<int> reindex = {0,3,6,1,4,7,2,5,8};
for(int i=0; i<9; i++) if(v[i] == at) { at = v[reindex[i]]; prev.at = at; break; } for(int i=0; i<9; i++) if(v[i] == at) { at = v[reindex[i]]; prev.at = at; break; }
} }
prev.spin = tile_orientation[at].spin + 1 - prev.spin; prev.spin = 2 * tile_orientation[at].spin + 1 - prev.spin;
prev += 0; prev += 0;
} }