File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -719,7 +719,8 @@ Phaser.Game.prototype = {
719719 this . _deltaTime = 0 ;
720720 this . _spiralling = 0 ;
721721
722- var slowStep = this . time . slowMotion * 1000.0 / this . time . desiredFps ;
722+ // call the game render update exactly once every frame
723+ this . updateRender ( this . time . slowMotion * this . time . desiredFps ) ;
723724 }
724725 else
725726 {
@@ -757,10 +758,10 @@ Phaser.Game.prototype = {
757758 }
758759
759760 this . _lastCount = count ;
760- }
761761
762- // call the game render update exactly once every frame
763- this . updateRender ( this . _deltaTime / slowStep ) ;
762+ // call the game render update exactly once every frame unless we're playing catch-up from a spiral condition
763+ this . updateRender ( this . _deltaTime / slowStep ) ;
764+ }
764765
765766 } ,
766767
Original file line number Diff line number Diff line change @@ -652,9 +652,9 @@ Phaser.Physics.Arcade.prototype = {
652652
653653 var len = group . children . length ;
654654
655- for ( var i = 0 ; i < len ; i ++ )
655+ for ( var i = 0 ; i < len - 1 ; i ++ )
656656 {
657- for ( var j = i + 1 ; j <= len ; j ++ )
657+ for ( var j = i + 1 ; j < len ; j ++ )
658658 {
659659 if ( group . children [ i ] && group . children [ j ] && group . children [ i ] . exists && group . children [ j ] . exists )
660660 {
You can’t perform that action at this time.
0 commit comments