1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 13:07:16 +00:00

bringris:: 'explore' in highscore list works nows

This commit is contained in:
Zeno Rogue 2024-11-17 18:36:58 +01:00
parent 04b6d43427
commit 22b3befdd0

View File

@ -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();
});