fix broken speech bubble display in chat. caused by r1a6b9a98147c one line was forgotten when moving some code
authorsheepluva
Thu, 12 Jun 2014 19:40:45 +0200
changeset 10288 7bf02127262c
parent 10287 e17fe8572478
child 10289 c3a77ff02a23
fix broken speech bubble display in chat. caused by r1a6b9a98147c one line was forgotten when moving some code
hedgewars/uScript.pas
--- a/hedgewars/uScript.pas	Thu Jun 12 18:58:40 2014 +0200
+++ b/hedgewars/uScript.pas	Thu Jun 12 19:40:45 2014 +0200
@@ -1114,12 +1114,12 @@
                begin
                if Gear^.Kind = gtHedgehog then
                    begin
+                   vgear^.Text:= lua_tostring(L, 2);
                    AddChatString(#1+'[' + gear^.Hedgehog^.Name + '] '+vgear^.text);
                    vgear^.Hedgehog:= gear^.Hedgehog
                    end
                else vgear^.Frame:= gear^.uid;
 
-               vgear^.Text:= lua_tostring(L, 2);
                vgear^.FrameTicks:= lua_tointeger(L, 3);
                if (vgear^.FrameTicks < 1) or (vgear^.FrameTicks > 3) then
                    vgear^.FrameTicks:= 1;