Mercurial > touhou
diff pytouhou/formats/anm0.py @ 35:9027692abd79
Fix anm0 parsing
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 14 Aug 2011 14:57:56 +0200 |
parents | 66ce9bb440ac |
children | cb5b27011044 |
line wrap: on
line diff
--- a/pytouhou/formats/anm0.py +++ b/pytouhou/formats/anm0.py @@ -56,10 +56,10 @@ class Animations(object): while True: #TODO time, instr_type, length = unpack('<HBB', file.read(4)) + data = file.read(length) + anm.scripts[i].append((time, instr_type, data)) if instr_type == 0: break - data = file.read(length) - anm.scripts[i].append((time, instr_type, data)) #TODO return anm