mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-01 13:25:46 -04:00
script reads in combined.txt and outputs all but multipatch textures
This commit is contained in:
parent
4e38509f96
commit
6fbbcec0f9
1 changed files with 12 additions and 3 deletions
|
@ -25,6 +25,15 @@ for line in texture1.split("\n"):
|
|||
current = Texture(line[0],line[1],line[2])
|
||||
textures[line[0]] = current
|
||||
|
||||
a = textures.values()
|
||||
a.sort(lambda a,b: cmp(a.name,b.name))
|
||||
sys.stdout.write(''.join(map(str,a)))
|
||||
oldtex = file("../../textures/combined.txt", "r").read()
|
||||
patches = []
|
||||
for line in oldtex.split("\n"):
|
||||
if len(line) == 0 or line[0] == ";" or line[0] == "#":
|
||||
print line
|
||||
elif line[0] == "*":
|
||||
patches.append(line)
|
||||
else:
|
||||
if 1 == len(patches):
|
||||
print patches[0]
|
||||
patches = []
|
||||
print line
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue