summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2012-03-25 19:23:59 +0000
committerrubidium <rubidium@openttd.org>2012-03-25 19:23:59 +0000
commit6db0753a46eea1d3af2a614811d37c9d804e59ac (patch)
tree1d745777266c9df3ab0e46bb94f4eb1aab41861e
parent927734e6ce825f6b34380f73a2e73c74591dd16e (diff)
downloadopenttd-6db0753a46eea1d3af2a614811d37c9d804e59ac.tar.xz
(svn r24066) -Change: do not redraw the text effect when nothing changed (Rhamphoryncus)
-rw-r--r--src/texteff.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/texteff.cpp b/src/texteff.cpp
index 32062fc1b..3ce40ce2f 100644
--- a/src/texteff.cpp
+++ b/src/texteff.cpp
@@ -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);