Fix cornfield crossing network play
This commit is contained in:
parent
785aaf7647
commit
9f6c87a636
@ -244,7 +244,7 @@ void TrackObjectManager::removeForRewind()
|
|||||||
{
|
{
|
||||||
for (TrackObject* curr : m_all_objects)
|
for (TrackObject* curr : m_all_objects)
|
||||||
{
|
{
|
||||||
if (curr->getPhysicalObject() &&
|
if (curr->isEnabled() && curr->getPhysicalObject() &&
|
||||||
curr->getPhysicalObject()->isDynamic())
|
curr->getPhysicalObject()->isDynamic())
|
||||||
curr->getPhysicalObject()->removeBody();
|
curr->getPhysicalObject()->removeBody();
|
||||||
}
|
}
|
||||||
@ -255,7 +255,7 @@ void TrackObjectManager::addForRewind()
|
|||||||
{
|
{
|
||||||
for (TrackObject* curr : m_all_objects)
|
for (TrackObject* curr : m_all_objects)
|
||||||
{
|
{
|
||||||
if (curr->getPhysicalObject() &&
|
if (curr->isEnabled() && curr->getPhysicalObject() &&
|
||||||
curr->getPhysicalObject()->isDynamic())
|
curr->getPhysicalObject()->isDynamic())
|
||||||
curr->getPhysicalObject()->addBody();
|
curr->getPhysicalObject()->addBody();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user