1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 09:00:34 +00:00

modalDebug works without GUI

This commit is contained in:
Zeno Rogue 2018-01-13 19:19:17 +01:00
parent c1089cab77
commit cb49f21824

View File

@ -395,6 +395,10 @@ void showCheatMenu() {
void modalDebug(cell *c) {
viewctr.h = c->master;
if(noGUI) {
fprintf(stderr, "fatal: modalDebug called on %p without GUI\n", c);
exit(1);
}
pushScreen(debugScreen);
debugmode = true;
mainloop();