1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

rulegen:: better debug

This commit is contained in:
Zeno Rogue 2021-12-26 22:34:15 +01:00
parent 9eb7b2e337
commit f43f80b0ad

View File

@ -1716,7 +1716,7 @@ EX void rules_iteration() {
clean_parents();
}
if(debugflags & DF_GEOM) println(hlog, "attempt: ", try_count);
if(debugflags & DF_GEOM) println(hlog, "attempt: ", try_count, " important = ", isize(important), " cells = ", tcellcount);
auto c = first_tcell;
while(c) { c->code = MYSTERY; c = c->next; }
@ -1952,6 +1952,8 @@ EX void generate_rules() {
break;
}
catch(rulegen_retry& e) {
if(debugflags & DF_GEOM)
println(hlog, "result ", try_count, ": ", e.what());
if(try_count >= max_retries) throw;
}
}