i had accidentally commented out a line of the level tiles

sorry ?? XD
This commit is contained in:
lustlion
2022-03-08 09:41:15 +01:00
parent 0acbfd5e9d
commit e8242f6564
2 changed files with 5 additions and 5 deletions

View File

@@ -30,6 +30,9 @@ function exportLevel(levelname, filename)
exportFile:write("\n tiles = {")
local rows = #LevelTiles
for i = 1, #LevelTiles do
if i > 1 then
exportFile:write(", ")
end
exportFile:write("\n { ")
for j = 1, #LevelTiles[i] do
if j ~= 1 then
@@ -38,9 +41,6 @@ function exportLevel(levelname, filename)
exportFile:write(tostring(LevelTiles[i][j].id))
end
exportFile:write("}")
if i ~= #LevelTiles then
exportFile:write(", ")
end
logPrint(" - row "..i.."/"..rows.." "..math.floor(100*((i-1)*100/rows))/100 .."%")
end
exportFile:write("\n },")