Merge pull request #14298 from TheCodez/patch-1

Fix #14298
This commit is contained in:
pandamicro 2015-11-11 14:04:40 +08:00
commit 5ff7cac4ae
1 changed files with 0 additions and 8 deletions

View File

@ -826,10 +826,6 @@ void PhysicsWorld::update(float delta, bool userCall/* = false*/)
if (userCall)
{
cpSpaceStep(_cpSpace, delta);
for (auto& body : _bodies)
{
body->update(delta);
}
}
else
{
@ -840,10 +836,6 @@ void PhysicsWorld::update(float delta, bool userCall/* = false*/)
for (int i = 0; i < _substeps; ++i)
{
cpSpaceStep(_cpSpace, dt);
for (auto& body : _bodies)
{
body->update(dt);
}
}
_updateRateCount = 0;
_updateTime = 0.0f;