From 3d70ba2a750d19930a51cd59cd4d7e89726f92f5 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 25 Apr 2026 01:17:26 +0200 Subject: [PATCH] ranged and move touchmodes may be invalid --- control.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/control.cpp b/control.cpp index 97153203..2312a65f 100644 --- a/control.cpp +++ b/control.cpp @@ -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); }