File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -1445,7 +1445,26 @@ void hiscore_menu() {
1445
1445
dialog::addSelItem (" bricks" , fts (ad->bricks ), ' b' );
1446
1446
dialog::addSelItem (" cubes" , fts (ad->cubes ), ' c' );
1447
1447
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 ();
1449
1468
popScreen ();
1450
1469
popScreen ();
1451
1470
});
You can’t perform that action at this time.
0 commit comments