mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-23 01:47:39 +00:00
more elegant cellwalkers
This commit is contained in:
4
rug.cpp
4
rug.cpp
@@ -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