hedgewars/uWorld.pas
changeset 6957 ab8034208fcd
parent 6941 228c0ab239f1
child 6961 d5ac09894a1b
equal deleted inserted replaced
6956:7d9e2669c2f5 6957:ab8034208fcd
   727                         animateWidget(@arrowUp, true, false);
   727                         animateWidget(@arrowUp, true, false);
   728                         animateWidget(@arrowDown, true, false);
   728                         animateWidget(@arrowDown, true, false);
   729                         end;
   729                         end;
   730                 if (Ammo^[Slot, Pos].Propz and ammoprop_Timerable) <> 0 then
   730                 if (Ammo^[Slot, Pos].Propz and ammoprop_Timerable) <> 0 then
   731                     begin
   731                     begin
   732                     if not utilityWidget.show then
   732                     utilityWidget.sprite:= sprTimerButton;
   733                         animateWidget(@utilityWidget, true, true); 
   733                     animateWidget(@utilityWidget, true, true);
       
   734                     end 
       
   735                 else if (Ammo^[Slot, Pos].Propz and ammoprop_NeedTarget) <> 0 then
       
   736                     begin
       
   737                     utilityWidget.sprite:= sprTargetButton;
       
   738                     animateWidget(@utilityWidget, true, true);
   734                     end
   739                     end
   735                 else
   740                 else if utilityWidget.show then
   736                     if utilityWidget.show then
   741                     animateWidget(@utilityWidget, true, false); 
   737                         animateWidget(@utilityWidget, true, false); 
       
   738 {$ENDIF}
   742 {$ENDIF}
   739 
   743 
   740                 exit
   744                 exit
   741                 end;
   745                 end;
   742             end
   746             end