mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-08 02:04:06 +00:00
fixed in_underlying_map not geometry in optimizeview()
This commit is contained in:
parent
8e943486d9
commit
64d0742343
@ -1378,7 +1378,7 @@ EX void optimizeview() {
|
|||||||
if(prod) {
|
if(prod) {
|
||||||
ld z = zlevel(tC0(View));
|
ld z = zlevel(tC0(View));
|
||||||
View = mscale(View, -z);
|
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; }
|
||||||
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);
|
View = mscale(View, z);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user