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