hedgewars/uWorld.pas
changeset 6957 ab8034208fcd
parent 6941 228c0ab239f1
child 6961 d5ac09894a1b
--- a/hedgewars/uWorld.pas	Sun Apr 29 14:10:59 2012 +0200
+++ b/hedgewars/uWorld.pas	Sun Apr 29 16:09:42 2012 +0200
@@ -729,12 +729,16 @@
                         end;
                 if (Ammo^[Slot, Pos].Propz and ammoprop_Timerable) <> 0 then
                     begin
-                    if not utilityWidget.show then
-                        animateWidget(@utilityWidget, true, true); 
+                    utilityWidget.sprite:= sprTimerButton;
+                    animateWidget(@utilityWidget, true, true);
+                    end 
+                else if (Ammo^[Slot, Pos].Propz and ammoprop_NeedTarget) <> 0 then
+                    begin
+                    utilityWidget.sprite:= sprTargetButton;
+                    animateWidget(@utilityWidget, true, true);
                     end
-                else
-                    if utilityWidget.show then
-                        animateWidget(@utilityWidget, true, false); 
+                else if utilityWidget.show then
+                    animateWidget(@utilityWidget, true, false); 
 {$ENDIF}
 
                 exit