1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-19 23:30:25 +00:00

sidecache was not cleared -- added

This commit is contained in:
Zeno Rogue 2021-08-22 19:42:25 +02:00
parent 59aed89f96
commit 536c1c21ea

View File

@ -1588,7 +1588,6 @@ void clear_tcell_data() {
c->distance_fixed = false; c->distance_fixed = false;
c = c->next; c = c->next;
} }
for(auto& c: t_origin) c->dist = 0;
in_fixing = false; fix_queue = {}; in_fixing = false; fix_queue = {};
} }
@ -1629,6 +1628,8 @@ EX void generate_rules() {
t_origin.clear(); t_origin.clear();
cell_to_tcell.clear(); cell_to_tcell.clear();
tcell_to_cell.clear(); tcell_to_cell.clear();
sidecache.clear();
fix_queue = {}; in_fixing = false;
if(flags & w_numerical) { if(flags & w_numerical) {
start_game(); start_game();