mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-08-14 02:48:50 +00:00
new system for debug logs
This commit is contained in:
+11
-8
@@ -1477,14 +1477,17 @@ EX namespace hybrid {
|
||||
|
||||
disc_quotient = abs(cycle_discrepancy(final));
|
||||
|
||||
if(debugflags & DF_GEOM) for(cell *c: ac) for(int i=0; i<c->type; i++) {
|
||||
cellwalker cw(c, i);
|
||||
if(cycle_discrepancy(cw)) println(hlog, cw, " ", cycle_discrepancy(cw));
|
||||
}
|
||||
if(debugflags & DF_GEOM) for(cell *c: ac) for(int i=0; i<c->type; i++) {
|
||||
auto err = get_shift(cellwalker(c, i)) + get_shift(cellwalker(c, i)+wstep);
|
||||
if(err)
|
||||
println(hlog, "two-side error: ", err, " on ", cellwalker(c, i));
|
||||
if(debug_geometry) {
|
||||
indenter_finish in("fix_bounded_cycles");
|
||||
for(cell *c: ac) for(int i=0; i<c->type; i++) {
|
||||
cellwalker cw(c, i);
|
||||
if(cycle_discrepancy(cw)) println(hlog, cw, " ", cycle_discrepancy(cw));
|
||||
}
|
||||
for(cell *c: ac) for(int i=0; i<c->type; i++) {
|
||||
auto err = get_shift(cellwalker(c, i)) + get_shift(cellwalker(c, i)+wstep);
|
||||
if(err)
|
||||
println(hlog, "two-side error: ", err, " on ", cellwalker(c, i));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user