mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-20 11:54:48 +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();
|
||||
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)
|
||||
q.push(at->move(i));
|
||||
unlink_cdata(at->move(i));
|
||||
|
Loading…
Reference in New Issue
Block a user