Fix caption not updating if adding caption with same text but different color
authorWuzzy <almikes@aol.com>
Mon, 10 Apr 2017 19:08:00 +0200
changeset 12220 2cbc57db82e1
parent 12219 facbc3c6e166
child 12221 5b525d041fb4
Fix caption not updating if adding caption with same text but different color
hedgewars/uCaptions.pas
--- a/hedgewars/uCaptions.pas	Mon Apr 10 18:42:50 2017 +0200
+++ b/hedgewars/uCaptions.pas	Mon Apr 10 19:08:00 2017 +0200
@@ -47,7 +47,7 @@
     if cOnlyStats then exit;
     if Length(s) = 0 then
         exit;
-    if Captions[Group].Text <> s then
+    if (Captions[Group].Text <> s) or (Captions[Group].Color <> Color) then
         FreeAndNilTexture(Captions[Group].Tex);
 
     if Captions[Group].Tex = nil then