1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Prevent unnecessary tweening invalidations

This commit is contained in:
mix
2025-04-07 21:15:28 +01:00
committed by GitHub
parent 3c6ff344bb
commit 9bc65f473b

View File

@@ -108,7 +108,7 @@ void EntityTweener::Restore()
for (size_t i = 0; i < Entities.size(); ++i)
{
auto* ent = Entities[i];
if (ent == nullptr)
if (ent == nullptr || PrePos[i] == PostPos[i])
continue;
ent->MoveTo(PostPos[i]);