Clear jump and walk msgs after placement
authorWuzzy <Wuzzy2@mail.ru>
Thu, 13 Jun 2019 15:07:03 +0200
changeset 15140 7a8cc8bc963e
parent 15139 0e0b5fc1674e
child 15141 309aa93df110
Clear jump and walk msgs after placement
ChangeLog.txt
hedgewars/uIO.pas
--- a/ChangeLog.txt	Tue Jun 11 16:02:29 2019 +0200
+++ b/ChangeLog.txt	Thu Jun 13 15:07:03 2019 +0200
@@ -34,6 +34,7 @@
  * Fix parachute making hog stuck or fast when bumping into wall while looking other way
  * Add missing winner animation in single missions
  * Fix hog floating when switching to moving hog
+ * Fix jump key not being ignored after placing girder or target
 
 Styles and schemes:
  + The Specialists: Unlock game scheme
--- a/hedgewars/uIO.pas	Tue Jun 11 16:02:29 2019 +0200
+++ b/hedgewars/uIO.pas	Thu Jun 13 15:07:03 2019 +0200
@@ -543,6 +543,7 @@
         State:= State and (not gstChooseTarget);
         if (Ammoz[CurAmmoType].Ammo.Propz and ammoprop_AttackingPut) <> 0 then
             Message:= Message or (gmAttack and InputMask);
+        Message:= Message and (not (gmHJump or gmLJump or gmLeft or gmRight or gmUp or gmDown));
         end
         else
             PlaySound(sndDenied)