# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1524694863 -7200
# Node ID e54d6db06f3531d278cb4fa93d6ae0deaee52616
# Parent  4f9108f82879fa3375d6b51d264b008f04343d32
Fix hog being unable to walk after using sniper rifle without firing both shots

diff -r 4f9108f82879 -r e54d6db06f35 ChangeLog.txt
--- a/ChangeLog.txt	Tue Apr 24 21:49:12 2018 +0200
+++ b/ChangeLog.txt	Thu Apr 26 00:21:03 2018 +0200
@@ -1,8 +1,9 @@
 + features
 * bugfixes
-====================== 0.9.25 ======================
+====================== 0.9.24.2 ====================
 Lua API:
  + New call: Retreat(time [, respectGetAwayTimeFactor): Force current turn into retreating mode
+ * Fix hog being unable to walk after using sniper rifle without firing both shots
 
 ====================== 0.9.24.1 ====================
  * Fix crash when portable portal device is fired at reduced graphics quality
diff -r 4f9108f82879 -r e54d6db06f35 hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Tue Apr 24 21:49:12 2018 +0200
+++ b/hedgewars/uGears.pas	Thu Apr 26 00:21:03 2018 +0200
@@ -537,6 +537,8 @@
                         begin
                         if (GameFlags and gfInvulnerable) = 0 then
                             Gear^.Hedgehog^.Effects[heInvulnerable]:= 0;
+                        if (Gear^.Hedgehog^.Effects[heArtillery] = 2) then
+                            Gear^.Hedgehog^.Effects[heArtillery]:= 0;
                         end;
                     end;
     t:= GearsList;