mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-26 18:25:13 +00:00
bugfix in memory clear
This commit is contained in:
4
cell.cpp
4
cell.cpp
@@ -981,7 +981,7 @@ template<class T> void subcell(cell *c, const T& t) {
|
|||||||
subcell(c2, t);
|
subcell(c2, t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(!nonbitrunc)
|
else if(!nonbitrunc && !syntetic && !binarytiling)
|
||||||
forCellEx(c2, c) t(c2);
|
forCellEx(c2, c) t(c2);
|
||||||
t(c);
|
t(c);
|
||||||
}
|
}
|
||||||
@@ -992,7 +992,7 @@ void clearHexes(heptagon *at) {
|
|||||||
at->cdata = NULL;
|
at->cdata = NULL;
|
||||||
}
|
}
|
||||||
if(irr::on) irr::clear_links(at);
|
if(irr::on) irr::clear_links(at);
|
||||||
else if(at->c7 && !binarytiling) subcell(at->c7, clearcell);
|
else if(at->c7) subcell(at->c7, clearcell);
|
||||||
}
|
}
|
||||||
|
|
||||||
void unlink_cdata(heptagon *h) {
|
void unlink_cdata(heptagon *h) {
|
||||||
|
|||||||
Reference in New Issue
Block a user