mirror of https://github.com/axmolengine/axmol.git
closed #3509: Sprites with PhysicsBody moves to wrong position when switch foreground/background.
This commit is contained in:
parent
48d3e8e334
commit
1e8e15506d
|
@ -847,13 +847,10 @@ void Director::resume()
|
|||
|
||||
setAnimationInterval(_oldAnimationInterval);
|
||||
|
||||
if (gettimeofday(_lastUpdate, nullptr) != 0)
|
||||
{
|
||||
CCLOG("cocos2d: Director: Error in gettimeofday");
|
||||
}
|
||||
|
||||
_paused = false;
|
||||
_deltaTime = 0;
|
||||
// fix issue #3509, skip one fps to avoid incorrect time calculation.
|
||||
setNextDeltaTimeZero(true);
|
||||
}
|
||||
|
||||
// display the FPS using a LabelAtlas
|
||||
|
|
Loading…
Reference in New Issue