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

rv:: added some guards

This commit is contained in:
Zeno Rogue
2023-04-11 16:48:57 +02:00
parent e93187a81f
commit d5e7f22073
3 changed files with 16 additions and 4 deletions

View File

@@ -497,6 +497,7 @@ bool draw_ptriangle(cell *c, const shiftmatrix& V) {
return false;
}
#if CAP_RVSLIDES
void slide_itri(tour::presmode mode, int id) {
using namespace tour;
setCanvas(mode, '0');
@@ -524,6 +525,7 @@ void slide_itri(tour::presmode mode, int id) {
}
rogueviz::pres::non_game_slide_scroll(mode);
}
#endif
string cap = "Impossible architecture in Nil/";
@@ -546,9 +548,11 @@ auto hchook = addHook(hooks_drawcell, 100, draw_ptriangle)
}
else return 1;
return 0;
})
});
+ addHook_rvslides(166, [] (string s, vector<tour::slide>& v) {
#if CAP_RVSLIDES
auto hcslides =
addHook_rvslides(166, [] (string s, vector<tour::slide>& v) {
using namespace tour;
if(s != "noniso") return;
@@ -585,6 +589,7 @@ auto hchook = addHook(hooks_drawcell, 100, draw_ptriangle)
slide_itri(mode, 2);
}});
});
#endif
}
}