mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-07 19:26:45 +00:00
bugfix in memory clear
This commit is contained in:
parent
f60df73004
commit
fe1a5c5a03
4
cell.cpp
4
cell.cpp
@ -981,7 +981,7 @@ template<class T> void subcell(cell *c, const T& t) {
|
||||
subcell(c2, t);
|
||||
}
|
||||
}
|
||||
else if(!nonbitrunc)
|
||||
else if(!nonbitrunc && !syntetic && !binarytiling)
|
||||
forCellEx(c2, c) t(c2);
|
||||
t(c);
|
||||
}
|
||||
@ -992,7 +992,7 @@ void clearHexes(heptagon *at) {
|
||||
at->cdata = NULL;
|
||||
}
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user