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

3D:: mscale no longer does something weird in Flatten

This commit is contained in:
Zeno Rogue 2019-06-17 12:35:54 +02:00
parent 37f3b122c3
commit 4e4a3a65a7

View File

@ -686,7 +686,7 @@ hyperpoint mscale(const hyperpoint& t, double fac) {
transmatrix mscale(const transmatrix& t, double fac) { transmatrix mscale(const transmatrix& t, double fac) {
if(GDIM == 3) { if(GDIM == 3) {
if(pmodel == mdFlatten) { transmatrix u = t; u[2][DIM] += fac; return u; } // if(pmodel == mdFlatten) { transmatrix u = t; u[2][DIM] -= fac; return u; }
return t * cpush(2, fac); return t * cpush(2, fac);
} }
transmatrix res; transmatrix res;