mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 09:48:18 +00:00
Merge pull request #1315 from pjbaron/dev
Minor logic fix and updateRender change
This commit is contained in:
commit
26e74fef18
2 changed files with 7 additions and 6 deletions
|
@ -719,7 +719,8 @@ Phaser.Game.prototype = {
|
|||
this._deltaTime = 0;
|
||||
this._spiralling = 0;
|
||||
|
||||
var slowStep = this.time.slowMotion * 1000.0 / this.time.desiredFps;
|
||||
// call the game render update exactly once every frame
|
||||
this.updateRender(this.time.slowMotion * this.time.desiredFps);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -757,10 +758,10 @@ Phaser.Game.prototype = {
|
|||
}
|
||||
|
||||
this._lastCount = count;
|
||||
}
|
||||
|
||||
// call the game render update exactly once every frame
|
||||
this.updateRender(this._deltaTime / slowStep);
|
||||
// call the game render update exactly once every frame unless we're playing catch-up from a spiral condition
|
||||
this.updateRender(this._deltaTime / slowStep);
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
|
|
|
@ -652,9 +652,9 @@ Phaser.Physics.Arcade.prototype = {
|
|||
|
||||
var len = group.children.length;
|
||||
|
||||
for (var i = 0; i < len; i++)
|
||||
for (var i = 0; i < len - 1; i++)
|
||||
{
|
||||
for (var j = i + 1; j <= len; j++)
|
||||
for (var j = i + 1; j < len; j++)
|
||||
{
|
||||
if (group.children[i] && group.children[j] && group.children[i].exists && group.children[j].exists)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue