- [FIX] Quan lligca els nombres, que no els prenga com cadenes
This commit is contained in:
@@ -21,8 +21,8 @@ mapa={
|
|||||||
file = io.open("data/"..filename, "r")
|
file = io.open("data/"..filename, "r")
|
||||||
if file then
|
if file then
|
||||||
io.input(file)
|
io.input(file)
|
||||||
mapa.w = io.read()
|
mapa.w = tonumber(io.read())
|
||||||
mapa.h = io.read()
|
mapa.h = tonumber(io.read())
|
||||||
mapa.new(mapa.w, mapa.h)
|
mapa.new(mapa.w, mapa.h)
|
||||||
mapa.name=filename
|
mapa.name=filename
|
||||||
for y=0,mapa.h-1 do
|
for y=0,mapa.h-1 do
|
||||||
|
|||||||
Reference in New Issue
Block a user