added game arg to mapPopulate
This commit is contained in:
		| @ -52,14 +52,15 @@ local map = { | ||||
|         -- end | ||||
|     end, | ||||
|     -- Map Populate / check if map exists | ||||
|     populate = function(self, map) | ||||
|     populate = function(self, map, game) | ||||
|         for h = 1, 10 do | ||||
|             for i = 1, 10 do | ||||
|                 local tile = map:create({ | ||||
|                     x = h, | ||||
|                     y = i, | ||||
|                     occupied_by_type = self:mapCrypt(self.map_tiles[h][i]), | ||||
|                     occupied_by_id = "" | ||||
|                     occupied_by_id = "", | ||||
|                     game_ref = game | ||||
|                 }) | ||||
|             end | ||||
|         end | ||||
|  | ||||
		Reference in New Issue
	
	Block a user