mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-21 16:00:27 +00:00
gpushxto0 no longer returns an incorrect result in nonisotropic
This commit is contained in:
parent
87168241ee
commit
5c98118da3
@ -702,6 +702,8 @@ EX transmatrix rpushxto0(const hyperpoint& H) {
|
|||||||
|
|
||||||
EX transmatrix ggpushxto0(const hyperpoint& H, ld co) {
|
EX transmatrix ggpushxto0(const hyperpoint& H, ld co) {
|
||||||
if(translatable) {
|
if(translatable) {
|
||||||
|
if(nonisotropic)
|
||||||
|
return co > 0 ? eupush(H) : inverse(eupush(H));
|
||||||
return eupush(co * H);
|
return eupush(co * H);
|
||||||
}
|
}
|
||||||
if(prod) {
|
if(prod) {
|
||||||
|
Loading…
Reference in New Issue
Block a user