Changeset - r25371:bdce16c583e0
[Not reviewed]
master
0 1 0
PeterN - 4 years ago 2021-05-03 14:12:47
peter1138@openttd.org
Fix #9174: Don't update text effect if it has been reset. (#9183)
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/texteff.cpp
Show inline comments
 
@@ -76,12 +76,13 @@ void UpdateTextEffect(TextEffectID te_id
 
	te->UpdatePosition(te->center, te->top, te->string_id, te->string_id - 1);
 
}
 

	
 
void UpdateAllTextEffectVirtCoords()
 
{
 
	for (auto &te : _text_effects) {
 
		if (te.string_id == INVALID_STRING_ID) continue;
 
		SetDParam(0, te.params_1);
 
		SetDParam(1, te.params_2);
 
		te.UpdatePosition(te.center, te.top, te.string_id, te.string_id - 1);
 
	}
 
}
 

	
0 comments (0 inline, 0 general)