During first worldUpdate set doll positions after spawning players

Otherwise we get a warning.
This commit is contained in:
logsol 2016-10-01 14:01:12 +02:00
parent a5f828a861
commit 016c48ec3b
2 changed files with 5 additions and 5 deletions

View file

@ -75,7 +75,7 @@ function (PhysicsEngine, TiledLevel, Player, Nc, Doll, GameObject, Item, Assert)
var gameObject = this.worldUpdateObjects[uid];
if (!(gameObject instanceof GameObject)) {
console.warn('Cant find object ' + uid + ' in worldUpdateObjects pool');
console.warn('Can\'t find object ' + uid + ' in worldUpdateObjects pool:', Object.keys(this.worldUpdateObjects));
continue;
}