changeset 267:35644a67ba4c

Fix Sakuya's bouncing knives
author Thibaut Girka <thib@sitedethib.com>
date Mon, 23 Jan 2012 22:04:40 +0100
parents 3a86c4e070dc
children dd621ad72beb
files pytouhou/game/bullet.pyx
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/game/bullet.pyx
+++ b/pytouhou/game/bullet.pyx
@@ -262,6 +262,9 @@ cdef class Bullet(object):
                 if self.y < 0 or ((self.flags & 1024) and self.y > self._game.height):
                     self.angle = -self.angle
                     self._removed = False
+                self._sprite.angle = self.angle
+                if self._sprite.automatic_orientation:
+                    self._sprite._changed = True
                 self.dx = cos(self.angle) * self.speed
                 self.dy = sin(self.angle) * self.speed
                 self.attributes[0] -= 1