1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-06 03:49:03 +00:00

reg3:: ultra-mirrors

This commit is contained in:
Zeno Rogue
2020-05-28 01:50:00 +02:00
parent 89bba619f0
commit 4217c7ccc7
7 changed files with 126 additions and 40 deletions

View File

@@ -282,6 +282,18 @@ void virtualRebase_cell(cell*& base, T& at, const U& check) {
base = newbase;
at = best_at;
}
if(reg3::ultra_mirror_in()) {
again:
for(auto& v: cgi.mirror_matrices) {
T cand_at = v * at;
horo_distance newz(check(cand_at));
if(newz < currz) {
currz = newz;
at = cand_at;
goto again;
}
}
}
}
template<class T, class U>