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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user