From 22b3befdd083bf79153ee5e6581e75a9009b298a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 17 Nov 2024 18:36:58 +0100 Subject: [PATCH] bringris:: 'explore' in highscore list works nows --- rogueviz/bringris.cpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/rogueviz/bringris.cpp b/rogueviz/bringris.cpp index 3f752292..5a8e7aed 100644 --- a/rogueviz/bringris.cpp +++ b/rogueviz/bringris.cpp @@ -1445,7 +1445,26 @@ void hiscore_menu() { dialog::addSelItem("bricks", fts(ad->bricks), 'b'); dialog::addSelItem("cubes", fts(ad->cubes), 'c'); dialog::addItem("explore", 'e'); - dialog::add_action([] { + dialog::add_action([ad] { + + clear_map(); + + for(int z=0; z<=ad->well_size; z++) { + println(hlog, "z = ", z); + string s = ad->lmap[z]; + println(hlog, "s = ", s); + int index = 0; + for(auto lev: level) { + cell *c = get_at(lev, -z); + char key = s[index++]; + if(key == '.') c->wall = waNone; + else c->wall = waWaxWall, c->landparam = get_hipso(z); + } + cur.lmap.push_back(s); + } + + state = tsGameover; explore = true; + ray::reset_raycaster_map(); popScreen(); popScreen(); });