hedgewars/uGears.pas
changeset 2814 71e80c6e74bb
parent 2813 25213bcab42f
child 2824 2d25e49bc2e8
--- a/hedgewars/uGears.pas	Mon Feb 15 21:44:05 2010 +0000
+++ b/hedgewars/uGears.pas	Mon Feb 15 21:54:26 2010 +0000
@@ -820,14 +820,8 @@
 	begin
 	if not (((Ammoz[Ammo^[CurSlot, CurAmmo].AmmoType].Ammo.Propz and ammoprop_AltUse) <> 0) and ((Gear^.State and gstAttacked) = 0)) then
 		exit;
-	
-	//r.x:= ((ord(Ammo^[CurSlot, CurAmmo].AmmoType) - 1) shr 5) * 32;
-	//r.y:= ((ord(Ammo^[CurSlot, CurAmmo].AmmoType) - 1) mod 32) * 32;
-	//r.w:= 32;
-	//r.h:= 32;
-	DrawTexture(sx + 16, sy + 16, ropeIconTex);
-	//DrawFromRect(sx + 18, sy + 18, @r, SpritesData[sprAMAmmos].Texture);
-	DrawTextureF(SpritesData[sprAMAmmos].Texture, 0.75, sx + 30, sy + 30, ord(Ammo^[CurSlot, CurAmmo].AmmoType) - 1, 1, 32, 32);
+	DrawTexture(round(sx + 16), round(sy + 16), ropeIconTex);
+	DrawTextureF(SpritesData[sprAMAmmos].Texture, 0.75, round(sx + 30), round(sy + 30), ord(Ammo^[CurSlot, CurAmmo].AmmoType) - 1, 1, 32, 32);
 	end;
 end;