mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-08-14 10:48:52 +00:00
PIU now works in the underlying map -- underlying geometry only is too fragile
This commit is contained in:
+1
-1
@@ -245,7 +245,7 @@ void virtualRebase(cell*& base, T& at, const U& check) {
|
||||
auto w = hybrid::get_where(base);
|
||||
auto d = product_decompose(check(at)).first;
|
||||
at = mscale(at, -d);
|
||||
hybrid::in_underlying_map([&] { virtualRebase(w.first, at, check); });
|
||||
PIU( virtualRebase(w.first, at, check) );
|
||||
if(d > cgi.plevel / 2) { w.second++; d -= cgi.plevel; }
|
||||
if(d < -cgi.plevel / 2) { w.second--; d += cgi.plevel; }
|
||||
at = mscale(at, +d);
|
||||
|
||||
Reference in New Issue
Block a user