# HG changeset patch # User Wuzzy # Date 1491844080 -7200 # Node ID 2cbc57db82e1ae86893188fab29b6812aa63b29a # Parent facbc3c6e1664ddcef913ddc426232e6520b1833 Fix caption not updating if adding caption with same text but different color diff -r facbc3c6e166 -r 2cbc57db82e1 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