1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-27 01:14:52 +00:00

fixed binary tiling embedded in product

This commit is contained in:
Zeno Rogue 2022-12-17 19:34:03 +01:00
parent be747b7a44
commit 72c1cf300e

View File

@ -863,7 +863,7 @@ EX transmatrix matrix3(ld a, ld b, ld c, ld d, ld e, ld f, ld g, ld h, ld i) {
#if MAXMDIM==3
return transmatrix {{{a,b,c},{d,e,f},{g,h,i}}};
#else
if(GDIM == 2)
if(GDIM == 2 || MDIM == 3)
return transmatrix {{{a,b,c,0},{d,e,f,0},{g,h,i,0},{0,0,0,1}}};
else
return transmatrix {{{a,b,0,c},{d,e,0,f},{0,0,1,0},{g,h,0,i}}};