- [FIX] Quan lligca els nombres, que no els prenga com cadenes

This commit is contained in:
2023-01-29 17:37:37 +01:00
parent 9a42bdbd56
commit 0d6e471229

View File

@@ -21,8 +21,8 @@ mapa={
file = io.open("data/"..filename, "r")
if file then
io.input(file)
mapa.w = io.read()
mapa.h = io.read()
mapa.w = tonumber(io.read())
mapa.h = tonumber(io.read())
mapa.new(mapa.w, mapa.h)
mapa.name=filename
for y=0,mapa.h-1 do