Don't ignore first line
This commit is contained in:
parent
3126b89bc1
commit
075c061a14
|
@ -88,7 +88,6 @@ class Map:
|
||||||
Transforms a string into the list of corresponding tiles
|
Transforms a string into the list of corresponding tiles
|
||||||
"""
|
"""
|
||||||
lines = content.split("\n")
|
lines = content.split("\n")
|
||||||
lines = [line for line in lines[1:] if line]
|
|
||||||
tiles = [[Tile.from_ascii_char(c)
|
tiles = [[Tile.from_ascii_char(c)
|
||||||
for x, c in enumerate(line)] for y, line in enumerate(lines)]
|
for x, c in enumerate(line)] for y, line in enumerate(lines)]
|
||||||
return tiles
|
return tiles
|
||||||
|
|
Loading…
Reference in New Issue