Fix ammo menu, placement and camera movement keys not working in ammo menu
authorWuzzy <Wuzzy2@mail.ru>
Sat, 28 Oct 2017 05:49:49 +0200
changeset 12790 abc9a99418cc
parent 12789 28782e03b8f0
child 12791 a19ae0db7ab5
Fix ammo menu, placement and camera movement keys not working in ammo menu
ChangeLog.txt
hedgewars/uInputHandler.pas
--- a/ChangeLog.txt	Sat Oct 28 04:53:21 2017 +0200
+++ b/ChangeLog.txt	Sat Oct 28 05:49:49 2017 +0200
@@ -70,6 +70,7 @@
  * Fixed team getting infinite ammo when stockpiling >= 100 ammo (max. finite ammo is now limited to 99)
  * Fixed failure to collect crate across wrap world edge
  * Remove buggy “/finish” chat command
+ * Fix key controls not working in ammo menu: ammo menu, placement, camera/cursor movement keys
  * Various other fixes
 
 Game engine (graphics, sounds and texts):
--- a/hedgewars/uInputHandler.pas	Sat Oct 28 04:53:21 2017 +0200
+++ b/hedgewars/uInputHandler.pas	Sat Oct 28 05:49:49 2017 +0200
@@ -173,7 +173,7 @@
     begin
     if (code < cKeyMaxIndex - 2) // means not mouse buttons
         and KeyDown
-        and (not ((CurrentBinds[code] = 'put')) or (CurrentBinds[code] = 'ammomenu') or (CurrentBinds[code] = '+cur_u') or (CurrentBinds[code] = '+cur_d') or (CurrentBinds[code] = '+cur_l') or (CurrentBinds[code] = '+cur_r')) 
+        and (not ((CurrentBinds[code] = 'put') or (CurrentBinds[code] = 'ammomenu') or (CurrentBinds[code] = '+cur_u') or (CurrentBinds[code] = '+cur_d') or (CurrentBinds[code] = '+cur_l') or (CurrentBinds[code] = '+cur_r')))
         and (CurrentTeam <> nil) 
         and (not CurrentTeam^.ExtDriven) 
         then bShowAmmoMenu:= false;