1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-01 02:07:57 +00:00

rogueviz:: slide_error used

This commit is contained in:
Zeno Rogue
2021-03-31 12:19:11 +02:00
parent 367ff6f035
commit 4af75fe611
2 changed files with 7 additions and 8 deletions

View File

@@ -354,13 +354,18 @@ auto fifteen_hook =
fifteen_slides.emplace_back(
tour::slide{s, 100, LEGAL::NONE | QUICKGEO, text,
[=] (presmode mode) {
string fname = "fifteen/" + lev + ".lev";
if(!file_exists(fname)) {
slide_error(mode, "file " + fname + " not found");
return;
}
setCanvas(mode, '0');
if(mode == pmStart) {
slide_backup(mapeditor::drawplayer, mapeditor::drawplayer);
slide_backup(vid.wallmode, 2);
slide_backup(pconf.scale, .6);
stop_game();
mapstream::loadMap("fifteen/" + lev + ".lev");
mapstream::loadMap(fname);
fullcenter();
if(lev == "coiled" || lev == "mobiusband")
View = spin(90*degree) * View;