mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Separate from TilemapLayer after custom callbacks.
This commit is contained in:
parent
cfadaf3e70
commit
ccd914620d
1 changed files with 8 additions and 6 deletions
|
@ -668,13 +668,12 @@ Phaser.Physics.Arcade.prototype = {
|
|||
}
|
||||
|
||||
for (var i = 0; i < this._mapData.length; i++)
|
||||
{
|
||||
if (this.separateTile(i, sprite.body, this._mapData[i]))
|
||||
{
|
||||
if (processCallback)
|
||||
{
|
||||
// They collided, is there a custom process callback?
|
||||
if (processCallback)
|
||||
if (processCallback.call(callbackContext, sprite, this._mapData[i]))
|
||||
{
|
||||
if (processCallback.call(callbackContext, sprite, this._mapData[i]))
|
||||
if (this.separateTile(i, sprite.body, this._mapData[i]))
|
||||
{
|
||||
this._total++;
|
||||
|
||||
|
@ -684,7 +683,10 @@ Phaser.Physics.Arcade.prototype = {
|
|||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.separateTile(i, sprite.body, this._mapData[i]))
|
||||
{
|
||||
this._total++;
|
||||
|
||||
|
|
Loading…
Reference in a new issue