Fix hog being unable to walk after using sniper rifle without firing both shots
authorWuzzy <Wuzzy2@mail.ru>
Thu, 26 Apr 2018 00:21:03 +0200
changeset 13350 e54d6db06f35
parent 13349 4f9108f82879
child 13352 e7b89e87a1b3
Fix hog being unable to walk after using sniper rifle without firing both shots
ChangeLog.txt
hedgewars/uGears.pas
--- 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
--- 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;