MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / UpdateAllTextEffectVirtCoords

Function UpdateAllTextEffectVirtCoords

src/texteff.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void UpdateAllTextEffectVirtCoords()
78{
79 for (auto &te : _text_effects) {
80 if (!te.IsValid()) continue;
81
82 te.UpdatePosition(te.center, te.top, te.msg.GetDecodedString());
83 }
84}
85
86void RemoveTextEffect(TextEffectID te_id)
87{

Callers 1

UpdateAllVirtCoordsFunction · 0.85

Calls 3

GetDecodedStringMethod · 0.80
IsValidMethod · 0.45
UpdatePositionMethod · 0.45

Tested by

no test coverage detected