diff --git a/rogueviz/rogueviz.cpp b/rogueviz/rogueviz.cpp index 4680cfaa..b37cc7a1 100644 --- a/rogueviz/rogueviz.cpp +++ b/rogueviz/rogueviz.cpp @@ -912,10 +912,12 @@ void init(flagtype _vizflags) { autocheat = true; showstartmenu = false; + #if CAP_TOUR if(tour::on) { tour::slide_backup(mapeditor::drawplayer); tour::slide_backup(timerghost); } + #endif #if !ISWEB mapeditor::drawplayer = false; diff --git a/rogueviz/rogueviz.h b/rogueviz/rogueviz.h index 18dc01d8..902845f4 100644 --- a/rogueviz/rogueviz.h +++ b/rogueviz/rogueviz.h @@ -110,8 +110,11 @@ namespace rogueviz { void do_cleanup(); inline void on_cleanup_or_next(const reaction_t& del) { + #if CAP_TOUR if(tour::on) tour::on_restore(del); - else cleanup.push_back(del); + else + #endif + cleanup.push_back(del); } template void rv_hook(hookset& m, int prio, U&& hook) {