hedgewars/uVisualGears.pas
changeset 10121 8b65699beb56
parent 10108 c68cf030eded
child 10193 d7cd5b43588f
--- a/hedgewars/uVisualGears.pas	Fri Feb 07 15:44:27 2014 +0400
+++ b/hedgewars/uVisualGears.pas	Fri Feb 07 22:42:57 2014 +0400
@@ -51,18 +51,14 @@
     , uVisualGearsList;
 
 procedure AddDamageTag(X, Y, Damage, Color: LongWord);
-var s: shortstring;
-    Gear: PVisualGear;
+var Gear: PVisualGear;
 begin
 if cAltDamage then
     begin
     Gear:= AddVisualGear(X, Y, vgtSmallDamageTag);
     if Gear <> nil then
         with Gear^ do
-            begin
-            str(Damage, s);
-            Tex:= RenderStringTex(s, Color, fntSmall);
-            end
+            Tex:= RenderStringTex(ansistring(inttostr(Damage)), Color, fntSmall);
     end
 end;