debug_cellnames option

This commit is contained in:
Zeno Rogue 2020-07-07 21:25:27 +02:00
parent f900ec7443
commit 3c8d5979f1
2 changed files with 10 additions and 0 deletions

View File

@ -1922,6 +1922,12 @@ void celldrawer::draw_cellstat() {
queuestr(V, .5, label, 0xFF000000 + col);
}
#endif
if(debug_cellnames && pointer_indices.count(c)) {
shstream ss; print(ss, c);
queuestr(V, .5, ss.s, 0xFFFFFFFF);
queuepoly(V * ddspin(c, 0), cgi.shAsymmetric, darkena(0x000000, 0, 0xC0));
}
}
void celldrawer::draw_wall_full() {

View File

@ -11,6 +11,7 @@ namespace hr {
EX int steplimit = 0;
EX int cstep;
EX bool buggyGeneration = false;
EX bool debug_cellnames = false;
EX vector<cell*> buggycells;
@ -848,6 +849,9 @@ int read_cheat_args() {
PHASE(1);
fixseed = true; autocheat = true;
}
else if(argis("-cellnames")) {
cheat(); debug_cellnames = true;
}
else if(argis("-fixx")) {
PHASE(1);
fixseed = true; autocheat = true;