1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-06-26 15:12:48 +00:00

rulegen-tests:: fix gamescreen

This commit is contained in:
Zeno Rogue 2022-07-11 12:19:30 +02:00
parent c775936970
commit 46cf751200

View File

@ -223,7 +223,7 @@ void try_sprawling(tcell *c) {
void debug_menu() { void debug_menu() {
cmode = sm::SIDE | sm::MAYDARK; cmode = sm::SIDE | sm::MAYDARK;
gamescreen(0); gamescreen();
auto m = dynamic_cast<hrmap_testproto*> (currentmap); auto m = dynamic_cast<hrmap_testproto*> (currentmap);
dialog::init("debug menu"); dialog::init("debug menu");
@ -264,7 +264,7 @@ void debug_menu() {
dialog::addItem("debug tiles", 'd'); dialog::addItem("debug tiles", 'd');
dialog::add_action_push([m] { dialog::add_action_push([m] {
cmode = sm::SIDE | sm::MAYDARK; cmode = sm::SIDE | sm::MAYDARK;
gamescreen(0); gamescreen();
dialog::init(); dialog::init();
for(auto dw: debuglist) { for(auto dw: debuglist) {
dialog::addItem("go to " + index_pointer(dw.at), 'a'); dialog::addItem("go to " + index_pointer(dw.at), 'a');