- Workaround for wrong sprite in utility widget when selecting DrillStrike
Note: It is better to extend utilityWidget to handle >=2 sprites/actions
--- 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);