mirror of
https://github.com/wassname/phaser.git
synced 2026-06-30 16:40:20 +08:00
Fix a silly mistake in skip preupdate/update for PIXI objects
This commit is contained in:
+5
-3
@@ -76,18 +76,20 @@ Phaser.World.prototype.update = function () {
|
||||
if (this.game.stage._stage.first._iNext)
|
||||
{
|
||||
var currentNode = this.game.stage._stage.first._iNext;
|
||||
var skipChildren = false;
|
||||
var skipChildren;
|
||||
|
||||
do
|
||||
{
|
||||
skipChildren = false;
|
||||
|
||||
if (currentNode['preUpdate'])
|
||||
{
|
||||
skipChildren = (currentNode.preUpdate() == false);
|
||||
skipChildren = (currentNode.preUpdate() === false);
|
||||
}
|
||||
|
||||
if (currentNode['update'])
|
||||
{
|
||||
skipChildren = (currentNode.update() == false) || skipChildren;
|
||||
skipChildren = (currentNode.update() === false) || skipChildren;
|
||||
}
|
||||
|
||||
if(skipChildren)
|
||||
|
||||
Reference in New Issue
Block a user