1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

fixed in_underlying_map not geometry in optimizeview()

This commit is contained in:
Zeno Rogue 2019-08-18 20:56:50 +02:00
parent 8e943486d9
commit 64d0742343

View File

@ -1378,7 +1378,7 @@ EX void optimizeview() {
if(prod) {
ld z = zlevel(tC0(View));
View = mscale(View, -z);
product::in_underlying_geometry(optimizeview);
product::in_underlying_map(optimizeview);
if(z > product::plevel / 2) { product::current_view_level--; z -= product::plevel; }
if(z < -product::plevel / 2) { product::current_view_level++; z += product::plevel; }
View = mscale(View, z);