From 6db0753a46eea1d3af2a614811d37c9d804e59ac Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 25 Mar 2012 19:23:59 +0000 Subject: (svn r24066) -Change: do not redraw the text effect when nothing changed (Rhamphoryncus) --- src/texteff.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf