MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / postTick

Method postTick

src/OpenLoco/src/Entities/EntityTweener.cpp:52–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 void EntityTweener::postTick()
53 {
54 for (auto* ent : _entities)
55 {
56 if (ent == nullptr || ent->id == EntityId::null)
57 {
58 // Sprite was removed, add a dummy position to keep the index aligned.
59 _postPos.emplace_back(0, 0, 0);
60 }
61 else
62 {
63 _postPos.emplace_back(ent->position);
64 }
65 }
66 }
67
68 void EntityTweener::removeEntity(const EntityBase* entity)
69 {

Callers 1

variableUpdateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected