1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-29 19:40:35 +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) { EX void remove_parentdir(tcell *c) {
clear_sidecache_and_codes(); if(c->parent_dir != MYSTERY) {
if(c->parent_dir) c->old_parent_dir = c->parent_dir; clear_sidecache_and_codes();
c->old_parent_dir = c->parent_dir;
}
c->parent_dir = MYSTERY; c->parent_dir = MYSTERY;
c->code = MYSTERY_LARGE; c->code = MYSTERY_LARGE;
for(int i=0; i<c->type; i++) if(c->move(i)) { for(int i=0; i<c->type; i++) if(c->move(i)) {