changeset 19192:25d3ab54cf2f draft

(svn r24066) -Change: do not redraw the text effect when nothing changed (Rhamphoryncus)
author rubidium <rubidium@openttd.org>
date Sun, 25 Mar 2012 19:23:59 +0000
parents 631c14db8f5a
children 14aceba8ac29
files src/texteff.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/texteff.cpp
+++ b/src/texteff.cpp
@@ -65,6 +65,7 @@
 {
 	/* 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);