hedgewars/uVisualGearsHandlers.pas
changeset 10124 aabd1b75d5a3
parent 10108 c68cf030eded
child 10193 d7cd5b43588f
--- a/hedgewars/uVisualGearsHandlers.pas	Sat Feb 08 16:29:34 2014 +0400
+++ b/hedgewars/uVisualGearsHandlers.pas	Sun Feb 09 00:44:29 2014 +0400
@@ -619,7 +619,7 @@
 
 Gear^.Timer:= max(LongInt(Length(Gear^.Text)) * 150, 3000);
 
-Gear^.Tex:= RenderSpeechBubbleTex(Gear^.Text, Gear^.FrameTicks, fnt16);
+Gear^.Tex:= RenderSpeechBubbleTex(ansistring(Gear^.Text), Gear^.FrameTicks, fnt16);
 
 // FrameTicks cannot hold negative values
 case Gear^.FrameTicks of
@@ -662,9 +662,9 @@
 
 str(Gear^.State, s);
 if Gear^.Hedgehog <> nil then
-    Gear^.Tex:= RenderStringTex(s, Gear^.Hedgehog^.Team^.Clan^.Color, fnt16)
+    Gear^.Tex:= RenderStringTex(ansistring(s), Gear^.Hedgehog^.Team^.Clan^.Color, fnt16)
 else
-    Gear^.Tex:= RenderStringTex(s, cWhiteColor, fnt16);
+    Gear^.Tex:= RenderStringTex(ansistring(s), cWhiteColor, fnt16);
 
 Gear^.doStep:= @doStepHealthTagWork;