1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-21 13:28:05 +00:00

added missing guards, mostly for CAP_WRL

This commit is contained in:
Zeno Rogue
2020-04-16 21:00:28 +02:00
parent 45bffedfbb
commit 84cf5d6e3a
5 changed files with 20 additions and 3 deletions

View File

@@ -1276,6 +1276,7 @@ EX void actDraw() {
if(keystate[SDLK_LALT]) alpha /= 10;
#endif
#if CAP_HOLDKEYS
auto perform_finger = [=] () {
if(keystate[SDLK_HOME]) finger_range /= exp(alpha);
if(keystate[SDLK_END]) finger_range *= exp(alpha);
@@ -1288,8 +1289,8 @@ EX void actDraw() {
};
if(finger_center)
perform_finger();
perform_finger();
#endif
}
catch(rug_exception) {
rug::close();