1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 15:40:26 +00:00

fixed overzealous cache clearing

This commit is contained in:
Zeno Rogue 2021-12-29 03:33:35 +01:00
parent 2e17df921d
commit 61c5ad9344

View File

@ -587,8 +587,10 @@ EX void find_new_shortcuts(tcell *c, int d, tcell *alt, int newdir, int delta) {
}
EX void remove_parentdir(tcell *c) {
clear_sidecache_and_codes();
if(c->parent_dir) c->old_parent_dir = c->parent_dir;
if(c->parent_dir != MYSTERY) {
clear_sidecache_and_codes();
c->old_parent_dir = c->parent_dir;
}
c->parent_dir = MYSTERY;
c->code = MYSTERY_LARGE;
for(int i=0; i<c->type; i++) if(c->move(i)) {