summaryrefslogtreecommitdiff
path: root/src/texteff.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/texteff.cpp')
-rw-r--r--src/texteff.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/texteff.cpp b/src/texteff.cpp
index f08701939..e29326a90 100644
--- a/src/texteff.cpp
+++ b/src/texteff.cpp
@@ -73,7 +73,16 @@ void UpdateTextEffect(TextEffectID te_id, StringID msg)
te->params_1 = GetDParam(0);
te->params_2 = GetDParam(1);
- te->UpdatePosition(te->center, te->top, msg);
+ te->UpdatePosition(te->center, te->top, te->string_id, te->string_id - 1);
+}
+
+void UpdateAllTextEffectVirtCoords()
+{
+ for (auto &te : _text_effects) {
+ SetDParam(0, te.params_1);
+ SetDParam(1, te.params_2);
+ te.UpdatePosition(te.center, te.top, te.string_id, te.string_id - 1);
+ }
}
void RemoveTextEffect(TextEffectID te_id)