1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-31 18:02:10 +00:00

3d:: horohex geometry

This commit is contained in:
Zeno Rogue
2019-03-13 13:12:49 +01:00
parent 67ba896be9
commit cb9513dd0d
8 changed files with 123 additions and 16 deletions
+1
View File
@@ -2463,6 +2463,7 @@ void setdist(cell *c, int d, cell *from) {
ld z = vid.binary_width;
cell *cseek = c;
int step = 0;
if(geometry == gHoroHex) z *= 2;
while(z < 3.999 && step < 10) cseek = cseek->cmove(S7-1), z *= 2;
if(cseek->master->emeraldval) setland(c, eLand(cseek->master->emeraldval));
}