View Single Post
  #1301  
Old 11-06-2011, 03:56 AM
Hoyt1134 Hoyt1134 is offline
Registered User
Join Date: Jul 2004
Posts: 18
Hoyt1134 is on a distinguished road
Serverside, there seems to be a bug with reading and writing to tilelayers above 0 while on a gmap. player.level.tilelayers[0].tiles[x,y] returns the correct tile for layer 0, but player.level.tilelayers[1].tiles[x,y] always returns 0.

Clientside on a gmap, player.gmap.tilelayers[0].tiles[x,y] always returns -1, but if you go to a layer above 0, such as player.gmap.tilelayers[1].tiles[x,y], it returns the correct tile. You can read the tile on layer 0 if you drop the tilelayers check, player.gmap.tiles[x,y] returns the tilelayers[0] tile for those coordinates.
Reply With Quote