mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-12 02:10:34 +00:00
modalDebug works without GUI
This commit is contained in:
parent
c1089cab77
commit
cb49f21824
@ -395,6 +395,10 @@ void showCheatMenu() {
|
|||||||
|
|
||||||
void modalDebug(cell *c) {
|
void modalDebug(cell *c) {
|
||||||
viewctr.h = c->master;
|
viewctr.h = c->master;
|
||||||
|
if(noGUI) {
|
||||||
|
fprintf(stderr, "fatal: modalDebug called on %p without GUI\n", c);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
pushScreen(debugScreen);
|
pushScreen(debugScreen);
|
||||||
debugmode = true;
|
debugmode = true;
|
||||||
mainloop();
|
mainloop();
|
||||||
|
Loading…
Reference in New Issue
Block a user