- Workaround for wrong sprite in utility widget when selecting DrillStrike ios-revival
authorantonc27 <antonc27@mail.ru>
Thu, 15 Oct 2015 22:48:32 +0200
branchios-revival
changeset 11211 1fa57188a469
parent 11210 22f2e072d31e
child 11212 cd9a6fd65c82
- Workaround for wrong sprite in utility widget when selecting DrillStrike Note: It is better to extend utilityWidget to handle >=2 sprites/actions
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Thu Oct 15 21:58:30 2015 +0200
+++ b/hedgewars/uWorld.pas	Thu Oct 15 22:48:32 2015 +0200
@@ -1930,7 +1930,7 @@
     ammoType:= CurrentHedgehog^.CurAmmoType;
 
 if(CurrentHedgehog <> nil)then
-    if (Ammoz[ammoType].Ammo.Propz and ammoprop_Timerable) <> 0 then
+    if ((Ammoz[ammoType].Ammo.Propz and ammoprop_Timerable) <> 0) and (ammoType <> amDrillStrike) then
         begin
         utilityWidget.sprite:= sprTimerButton;
         animateWidget(@utilityWidget, true, true);