Commits

alterecco committed 559c55d

handle layer properties correctly

  • Participants
  • Parent commits 2085efd

Comments (0)

Files changed (1)

 
 	-- TODO layer properties should include which layer is the collision layer
 	-- treat that layer as as special layer!!
-	for _,v in pairs(data.layers) do
+	for i,v in ipairs(data.layers) do
 		table.insert(map.layers, 
 			{ x = v.x
 			, y = v.y
 			})
 		for k,j in pairs(v.properties) do
 			-- XXX perhaps we need to manipulate the data one day?
-			map.properties[k] = j
+			map.layers[i].properties[k] = j
 		end
 	end