diff pytouhou/vm/anmrunner.py @ 470:98995d8ac744

Reset ANMRunner.sprite_index_offset after the first frame, fixes bullettype 7; also forbid glitch bullet types.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 16 Sep 2013 18:41:51 +0200
parents 1222341ea22c
children 59bd29568753
line wrap: on
line diff
--- a/pytouhou/vm/anmrunner.py
+++ b/pytouhou/vm/anmrunner.py
@@ -55,8 +55,8 @@ class ANMRunner(object):
                           0,  0,  0,  0]
 
         self.sprite_index_offset = sprite_index_offset
-
         self.run_frame()
+        self.sprite_index_offset = 0
 
 
     def interrupt(self, interrupt):