Mercurial > touhou
diff pytouhou/formats/exe.py @ 236:741860192b56
Implement ANM0 interrupts
“Instruction” 22 is used as a label for interrupts.
If the normal animation is interrupted, it goes straight to the matched
instruction. Interrupt -1 matches all interrupts.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 01 Jan 2012 19:47:34 +0100 |
parents | e59bd7979ddc |
children | 2876c267be00 |
line wrap: on
line diff
--- a/pytouhou/formats/exe.py +++ b/pytouhou/formats/exe.py @@ -155,7 +155,6 @@ class SHT(object): shots_offsets[offset] = [] shots_offsets[offset].append(sht) - character = 0 for shots_offset, shts in shots_offsets.iteritems(): pe_file.seek_to_va(shots_offset) @@ -187,8 +186,6 @@ class SHT(object): for sht in shts: sht.shots = shots - character += 1 - return characters