item/monster icons in 3d

This commit is contained in:
Zeno Rogue
2019-09-12 22:49:56 +02:00
parent 79f36c6f49
commit 9a21401b9c
9 changed files with 53 additions and 21 deletions
+4 -1
View File
@@ -671,7 +671,10 @@ hyperpoint mscale(const hyperpoint& t, double fac) {
}
transmatrix mscale(const transmatrix& t, double fac) {
if(GDIM == 3) return t * cpush(2, fac);
if(GDIM == 3) {
if(pmodel == mdFlatten) { transmatrix u = t; u[2][DIM] += fac; return u; }
return t * cpush(2, fac);
}
transmatrix res;
for(int i=0; i<MDIM; i++) for(int j=0; j<MDIM; j++)
res[i][j] = t[i][j] * fac;