diff --git a/celldrawer.cpp b/celldrawer.cpp index 7f6dce43..97b44aa9 100644 --- a/celldrawer.cpp +++ b/celldrawer.cpp @@ -1930,6 +1930,8 @@ void celldrawer::check_rotations() { } } +EX bool debug_tiles; + void celldrawer::bookkeeping() { bool orig = false; if(!inmirrorcount) { @@ -2021,6 +2023,15 @@ void celldrawer::draw_cellstat() { string label = its(c->landparam); queuestr(V, 1 * .2, label, 0xFFFFFFFF, 1); } + + if(debug_tiles) { + string label = its(shvid(c)); + queuestr(V, .5, label, 0xFFFFFFFF, 1); + for(int i=0; itype; i++) { + queuestr(V * rgpushxto0(currentmap->get_corner(c, i, 4)), .2, its(i), 0xFFFFFFFF, 1); + queuestr(V * rgpushxto0(mid(currentmap->get_corner(c, i, 4), currentmap->get_corner(c, i+1, 5))), .2, its(i), 0xFFFFFFFF, 1); + } + } if(cmode & sm::TORUSCONFIG) { auto p = euc::coord_display(V, c); diff --git a/config.cpp b/config.cpp index 943beffb..130cdf84 100644 --- a/config.cpp +++ b/config.cpp @@ -2440,6 +2440,7 @@ EX int config3 = addHook(hooks_configfile, 100, [] { ->set_reaction([] { if(vid.highdetail > vid.middetail) vid.highdetail = vid.middetail; }); + param_b(debug_tiles, "debug_tiles"); addsaver(vid.gp_autoscale_heights, "3D Goldberg autoscaling", true); });