mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-19 20:38:09 +00:00
debug_tiles feature
This commit is contained in:
@@ -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; i<c->type; 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);
|
||||
|
||||
Reference in New Issue
Block a user