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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user