mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-19 07:32:29 +00:00
item/monster icons in 3d
This commit is contained in:
+4
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user