mirror of https://github.com/OpenTTD/OpenTTD
(svn r24066) -Change: do not redraw the text effect when nothing changed (Rhamphoryncus)
parent
927734e6ce
commit
6db0753a46
|
@ -65,6 +65,7 @@ void UpdateTextEffect(TextEffectID te_id, StringID msg)
|
||||||
{
|
{
|
||||||
/* Update details */
|
/* Update details */
|
||||||
TextEffect *te = _text_effects.Get(te_id);
|
TextEffect *te = _text_effects.Get(te_id);
|
||||||
|
if (msg == te->string_id && GetDParam(0) == te->params_1) return;
|
||||||
te->string_id = msg;
|
te->string_id = msg;
|
||||||
te->params_1 = GetDParam(0);
|
te->params_1 = GetDParam(0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue