mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-28 16:23:08 +00:00
fixed some problem with memory clearing in other geometries
This commit is contained in:
1 parent
88bb63a9ca
commit
0c0f16ab12
1 file changed
+2
-2
@@ -840,7 +840,7 @@ heptagon deletion_marker;
|
||||
|
||||
void clearHexes(heptagon *at) {
|
||||
if(at->c7) {
|
||||
if(!nonbitrunc) for(int i=0; i<7; i++)
|
||||
if(!nonbitrunc) for(int i=0; i<S7; i++)
|
||||
clearcell(at->c7->mov[i]);
|
||||
clearcell(at->c7);
|
||||
}
|
||||
@@ -856,7 +856,7 @@ void clearfrom(heptagon *at) {
|
||||
// if(q.size() > maxq) maxq = q.size();
|
||||
q.pop();
|
||||
DEBMEM ( printf("from %p\n", at); )
|
||||
for(int i=0; i<7; i++) if(at->move[i]) {
|
||||
for(int i=0; i<S7; i++) if(at->move[i]) {
|
||||
if(at->move[i]->alt != &deletion_marker)
|
||||
q.push(at->move[i]);
|
||||
at->move[i]->alt = &deletion_marker;
|
||||
|
||||
Reference in new issue
Block a user