1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-30 03:50:34 +00:00

arb::convert:: added more tests as the current sometimes did not work

This commit is contained in:
Zeno Rogue 2021-09-30 13:18:34 +02:00
parent b88ec8550e
commit aeb93f7e3f

View File

@ -1137,6 +1137,9 @@ EX void convert() {
manual_celllister cl; manual_celllister cl;
cl.add(currentmap->gamestart()); cl.add(currentmap->gamestart());
int more_tests = 1000;
pointer_indices.clear();
int chg = -1; int chg = -1;
while(changes > chg) { while(changes > chg) {
changes = chg; changes = chg;
@ -1147,7 +1150,10 @@ EX void convert() {
auto c = cl.lst[i]; auto c = cl.lst[i];
auto& id = get_identification(c); auto& id = get_identification(c);
if(masters_analyzed.count(id.target)) continue; if(masters_analyzed.count(id.target)) {
more_tests--;
if(more_tests < 0) continue;
}
masters_analyzed.insert(id.target); masters_analyzed.insert(id.target);
cellwalker cw0(c, id.shift); cellwalker cw0(c, id.shift);