1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-22 22:19:08 +00:00

(svn r24066) -Change: do not redraw the text effect when nothing changed (Rhamphoryncus)

This commit is contained in:
rubidium
2012-03-25 19:23:59 +00:00
parent 927734e6ce
commit 6db0753a46

View File

@@ -65,6 +65,7 @@ void UpdateTextEffect(TextEffectID te_id, StringID msg)
{
/* Update details */
TextEffect *te = _text_effects.Get(te_id);
if (msg == te->string_id && GetDParam(0) == te->params_1) return;
te->string_id = msg;
te->params_1 = GetDParam(0);