1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-19 15:20:27 +00:00

fixed shift_view_towards in nonisotropic

This commit is contained in:
Zeno Rogue 2019-08-26 13:50:28 +02:00
parent 599346f436
commit a546b3a62e

View File

@ -2107,7 +2107,8 @@ EX void shift_view_towards(hyperpoint H, ld l) {
shift_view(tangent_length(H-C0, -l));
else {
hyperpoint ie = inverse_exp(H, iTable, true);
shift_view(tangent_length(lp_apply(ie), -l));
if(prod) ie = lp_apply(ie);
shift_view(tangent_length(ie, -l));
}
}