TilemapParser.getEmptyData now correct adds an empty bodies array into layers. This fixes an issue where p2 couldn't convert a csv map into collision tiles (thanks @sru #845)

This commit is contained in:
photonstorm 2014-08-29 16:30:29 +01:00
parent 719b81c6e3
commit 10e7d8ff7e
2 changed files with 2 additions and 0 deletions

View file

@ -148,6 +148,7 @@ Version 2.1.0 - "Cairhien" - -in development-
* Sound.restart used to cause the Sound to double-up if it was already playing when called. Now correctly stops the sound before restarting it (thanks @wombatbuddy #1136)
* GamePad axis detection now works again properly in Firefox (#1035)
* GamepadButton.justPressed and justReleased now correctly report if the button has just been pressed or released (thanks @padpadpad #1019)
* TilemapParser.getEmptyData now correct adds an empty bodies array into layers. This fixes an issue where p2 couldn't convert a csv map into collision tiles (thanks @sru #845)
### p2.js 0.6.0 Changes and New Features

View file

@ -159,6 +159,7 @@ Phaser.TilemapParser = {
properties: {},
indexes: [],
callbacks: [],
bodies: [],
data: []
};