diff options
author | rubidium <rubidium@openttd.org> | 2012-03-25 19:23:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2012-03-25 19:23:59 +0000 |
commit | 6db0753a46eea1d3af2a614811d37c9d804e59ac (patch) | |
tree | 1d745777266c9df3ab0e46bb94f4eb1aab41861e | |
parent | 927734e6ce825f6b34380f73a2e73c74591dd16e (diff) | |
download | openttd-6db0753a46eea1d3af2a614811d37c9d804e59ac.tar.xz |
(svn r24066) -Change: do not redraw the text effect when nothing changed (Rhamphoryncus)
-rw-r--r-- | src/texteff.cpp | 1 |
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); |