modalDebug works without GUI

This commit is contained in:
Zeno Rogue committed 2018-01-13 19:19:17 +01:00
1 parent c1089cab77
commit cb49f21824
1 file changed
+4
+4
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();