mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-29 12:34:07 +00:00
fixed some CAP_TOUR guards in rogueviz
This commit is contained in:
parent
78b0324a91
commit
b0587572ae
@ -912,10 +912,12 @@ void init(flagtype _vizflags) {
|
|||||||
autocheat = true;
|
autocheat = true;
|
||||||
showstartmenu = false;
|
showstartmenu = false;
|
||||||
|
|
||||||
|
#if CAP_TOUR
|
||||||
if(tour::on) {
|
if(tour::on) {
|
||||||
tour::slide_backup(mapeditor::drawplayer);
|
tour::slide_backup(mapeditor::drawplayer);
|
||||||
tour::slide_backup(timerghost);
|
tour::slide_backup(timerghost);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !ISWEB
|
#if !ISWEB
|
||||||
mapeditor::drawplayer = false;
|
mapeditor::drawplayer = false;
|
||||||
|
@ -110,8 +110,11 @@ namespace rogueviz {
|
|||||||
void do_cleanup();
|
void do_cleanup();
|
||||||
|
|
||||||
inline void on_cleanup_or_next(const reaction_t& del) {
|
inline void on_cleanup_or_next(const reaction_t& del) {
|
||||||
|
#if CAP_TOUR
|
||||||
if(tour::on) tour::on_restore(del);
|
if(tour::on) tour::on_restore(del);
|
||||||
else cleanup.push_back(del);
|
else
|
||||||
|
#endif
|
||||||
|
cleanup.push_back(del);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T, class U> void rv_hook(hookset<T>& m, int prio, U&& hook) {
|
template<class T, class U> void rv_hook(hookset<T>& m, int prio, U&& hook) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user