From aeb93f7e3faff230f4b6dba273adaa6d247556f5 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 30 Sep 2021 13:18:34 +0200 Subject: [PATCH] arb::convert:: added more tests as the current sometimes did not work --- arbitrile.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arbitrile.cpp b/arbitrile.cpp index 1022c043..0ec93c4f 100644 --- a/arbitrile.cpp +++ b/arbitrile.cpp @@ -1137,6 +1137,9 @@ EX void convert() { manual_celllister cl; cl.add(currentmap->gamestart()); + int more_tests = 1000; + pointer_indices.clear(); + int chg = -1; while(changes > chg) { changes = chg; @@ -1147,7 +1150,10 @@ EX void convert() { auto c = cl.lst[i]; 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); cellwalker cw0(c, id.shift);