1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-10 15:59:53 +00:00

made rulegen compile in older compiler

This commit is contained in:
Zeno Rogue 2021-10-01 08:11:50 +02:00
parent 77063c135d
commit 53a4a472aa

View File

@ -1613,7 +1613,7 @@ void clear_tcell_data() {
c->distance_fixed = false; c->distance_fixed = false;
c = c->next; c = c->next;
} }
in_fixing = false; fix_queue = {}; in_fixing = false; fix_queue = std::queue<reaction_t>{};
} }
void cleanup() { void cleanup() {
@ -1664,7 +1664,7 @@ EX void generate_rules() {
tcell_to_cell.clear(); tcell_to_cell.clear();
branch_conflicts_seen.clear(); branch_conflicts_seen.clear();
sidecache.clear(); sidecache.clear();
fix_queue = {}; in_fixing = false; fix_queue = queue<reaction_t>();; in_fixing = false;
if(flags & w_numerical) { if(flags & w_numerical) {
start_game(); start_game();
@ -1686,7 +1686,7 @@ EX void generate_rules() {
t_origin.push_back(c); t_origin.push_back(c);
} }
bfs_queue = {}; bfs_queue = queue<tcell*>();
if(flags & w_bfs) for(auto c: t_origin) bfs_queue.push(c); if(flags & w_bfs) for(auto c: t_origin) bfs_queue.push(c);
try_count = 0; try_count = 0;