Skip to content

Commit 22b3bef

Browse files
committed
bringris:: 'explore' in highscore list works nows
1 parent 04b6d43 commit 22b3bef

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

rogueviz/bringris.cpp

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,26 @@ void hiscore_menu() {
14451445
dialog::addSelItem("bricks", fts(ad->bricks), 'b');
14461446
dialog::addSelItem("cubes", fts(ad->cubes), 'c');
14471447
dialog::addItem("explore", 'e');
1448-
dialog::add_action([] {
1448+
dialog::add_action([ad] {
1449+
1450+
clear_map();
1451+
1452+
for(int z=0; z<=ad->well_size; z++) {
1453+
println(hlog, "z = ", z);
1454+
string s = ad->lmap[z];
1455+
println(hlog, "s = ", s);
1456+
int index = 0;
1457+
for(auto lev: level) {
1458+
cell *c = get_at(lev, -z);
1459+
char key = s[index++];
1460+
if(key == '.') c->wall = waNone;
1461+
else c->wall = waWaxWall, c->landparam = get_hipso(z);
1462+
}
1463+
cur.lmap.push_back(s);
1464+
}
1465+
1466+
state = tsGameover; explore = true;
1467+
ray::reset_raycaster_map();
14491468
popScreen();
14501469
popScreen();
14511470
});

0 commit comments

Comments
 (0)