Skip to content

Commit c6b8047

Browse files
committed
Revert "Made actor age 0 on frame it's added instead of one tick later (backwards compat with glows and async MOID draws)"
This reverts commit 7d91cb4.
1 parent 528c4bc commit c6b8047

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/Managers/MovableMan.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ void MovableMan::AddActor(Actor* actorToAdd) {
667667
}
668668
actorToAdd->NotResting();
669669
actorToAdd->NewFrame();
670-
actorToAdd->SetAge(g_TimerMan.GetDeltaTimeMS() * -1.0f);
670+
actorToAdd->SetAge(0);
671671
}
672672

673673
{
@@ -695,7 +695,7 @@ void MovableMan::AddItem(HeldDevice* itemToAdd) {
695695
}
696696
itemToAdd->NotResting();
697697
itemToAdd->NewFrame();
698-
itemToAdd->SetAge(g_TimerMan.GetDeltaTimeMS() * -1.0f);
698+
itemToAdd->SetAge(0);
699699
}
700700

701701
std::lock_guard<std::mutex> lock(m_AddedItemsMutex);
@@ -718,7 +718,7 @@ void MovableMan::AddParticle(MovableObject* particleToAdd) {
718718
// TODO consider moving particles out of grass. It's old code that was removed because it's slow to do this for every particle.
719719
particleToAdd->NotResting();
720720
particleToAdd->NewFrame();
721-
particleToAdd->SetAge(g_TimerMan.GetDeltaTimeMS() * -1.0f);
721+
particleToAdd->SetAge(0);
722722
}
723723
if (particleToAdd->IsDevice()) {
724724
std::lock_guard<std::mutex> lock(m_AddedItemsMutex);

0 commit comments

Comments
 (0)