Textures contain Patch objects, not lines of text

This commit is contained in:
Jon Dowland 2008-01-29 21:55:37 +00:00
parent a3dec5eaa7
commit 698b3ddd11

View file

@ -35,7 +35,8 @@ class HellowWorldGTK:
if len(line) == 0 or line[0] == ";" or line[0] == "#":
continue
elif line[0] == "*" and current:
current.patches.append(line)
junk,name,y,x= line.split()
current.patches.append(Patch(name,int(x),int(y)))
else:
line = line.split()
if len(line) != 3: