Mercurial > touhou
changeset 35:9027692abd79
Fix anm0 parsing
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 14 Aug 2011 14:57:56 +0200 |
parents | 4d93d45ecb62 |
children | f46c18872796 |
files | pytouhou/formats/anm0.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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