1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-21 08:00:25 +00:00

gpushxto0 no longer returns an incorrect result in nonisotropic

This commit is contained in:
Zeno Rogue 2020-04-17 17:44:42 +02:00
parent 87168241ee
commit 5c98118da3

View File

@ -702,6 +702,8 @@ EX transmatrix rpushxto0(const hyperpoint& H) {
EX transmatrix ggpushxto0(const hyperpoint& H, ld co) {
if(translatable) {
if(nonisotropic)
return co > 0 ? eupush(H) : inverse(eupush(H));
return eupush(co * H);
}
if(prod) {