1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-17 02:40:03 +00:00

models:: fixed errors on poles in CentralCyl

This commit is contained in:
Zeno Rogue 2019-08-14 21:08:45 +02:00
parent 43bcc4e2bd
commit 161ed6a9a9

View File

@ -679,7 +679,7 @@ EX void applymodel(hyperpoint H, hyperpoint& ret) {
break;
case mdCentralCyl:
makeband(H, ret, [] (ld& x, ld& y) { y = tan_auto(y); });
makeband(H, ret, [] (ld& x, ld& y) { y = tan_auto(y); ld top = vid.yres * M_PI / current_display->radius; if(y>top) y=top; if(y<-top) y=-top; });
break;
case mdCollignon: