mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-05 11:12:49 +00:00
fixed clearfrom if a heptagon is adjacent to itself
This commit is contained in:
parent
a52d103334
commit
61c3939cb7
2
cell.cpp
2
cell.cpp
@ -408,7 +408,7 @@ EX void clearfrom(heptagon *at) {
|
|||||||
}
|
}
|
||||||
int edges = at->degree();
|
int edges = at->degree();
|
||||||
if(bt::in() && WDIM == 2) edges = at->c7->type;
|
if(bt::in() && WDIM == 2) edges = at->c7->type;
|
||||||
for(int i=0; i<edges; i++) if(at->move(i)) {
|
for(int i=0; i<edges; i++) if(at->move(i) && at->move(i) != at) {
|
||||||
if(at->move(i)->alt != &deletion_marker)
|
if(at->move(i)->alt != &deletion_marker)
|
||||||
q.push(at->move(i));
|
q.push(at->move(i));
|
||||||
unlink_cdata(at->move(i));
|
unlink_cdata(at->move(i));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user