mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 09:50:34 +00:00
rulegen:: better debug
This commit is contained in:
parent
9eb7b2e337
commit
f43f80b0ad
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user