1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-03 11:17:56 +00:00

refactored the vertical movement functions

This commit is contained in:
Zeno Rogue
2022-12-06 01:04:26 +01:00
parent adfab30c62
commit bf001926c2
12 changed files with 210 additions and 181 deletions

View File

@@ -379,9 +379,9 @@ void virtualRebase(cell*& base, T& at, const U& check) {
base = base->cmove(base->type-2); d += cgi.plevel;
}
auto w = hybrid::get_where(base);
at = mscale(at, -d);
at = orthogonal_move(at, -d);
PIU( virtualRebase(w.first, at, check) );
at = mscale(at, +d);
at = orthogonal_move(at, +d);
base = hybrid::get_at(w.first, w.second);
return;
}