mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 08:07:10 +00:00
more elegant cellwalkers
This commit is contained in:
1 parent
2c09c5ee56
commit
ac37b6df99
20 files changed
+371
-467
No files matched your search
@@ -602,9 +602,7 @@ void buildRug() {
|
||||
rugpoint *w2 = vptr.at(c3);
|
||||
|
||||
if(a4) {
|
||||
cellwalker cw(c, j);
|
||||
cwstep(cw); cwspin(cw, -1); cwstep(cw);
|
||||
cell *c4 = cw.c;
|
||||
cell *c4 = (cellwalker(c,j) + wstep - 1 + wstep).c;
|
||||
cell *cm = c; comp(cm, c); comp(cm, c2); comp(cm, c3); comp(cm, c4);
|
||||
if(cm == c || cm == c4)
|
||||
addTriangle(v, w, w2);
|
||||
|
||||
Reference in new issue
Block a user