1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-09 00:22:06 +00:00

ranged and move touchmodes may be invalid

This commit is contained in:
Zeno Rogue
2026-04-25 01:17:26 +02:00
parent 8617b4a33e
commit 3d70ba2a75
+2
View File
@@ -809,6 +809,8 @@ EX void handleKeyNormal(int sym, int uni) {
do {
touchmode = (tmode) gmod(1 + int(touchmode), 5);
invalid = touchmode == tmode::fire && !bow::crossbow_mode();
if(!mapeditor::drawplayer && touchmode == tmode::ranged) invalid=true;
if(game_keys_scroll && touchmode == tmode::move) invalid=true;
}
while(invalid);
}