1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-19 23:25:13 +00:00

new system for debug logs

This commit is contained in:
Zeno Rogue
2025-10-19 15:47:01 +02:00
parent 94024dd5f1
commit 113e75d5e1
43 changed files with 601 additions and 447 deletions

View File

@@ -88,7 +88,7 @@ EX void prepare() {
lambda[0] = b + sqrt(b*b-1);
lambda[1] = b - sqrt(b*b-1);
DEBB(DF_GEOM, ("b = ", b, " lambda = ", lambda));
if(debug_geometry) println(hlog, "asonov: b = ", b, " lambda = ", lambda);
transmatrix eigen = Id;
@@ -103,7 +103,7 @@ EX void prepare() {
ty = point3(ieigen[0][1], ieigen[1][1], 0) * vid.binary_width;
tz = -point3(0, 0, log(lambda[0]));
DEBB(DF_GEOM, ("tx = ", tx, " ty = ", ty, " tz = ", tz));
if(debug_geometry) println(hlog, "tx = ", tx, " ty = ", ty, " tz = ", tz);
straighten = inverse(build_matrix(asonov::tx/2, asonov::ty/2, asonov::tz/2, C0));
}