# HG changeset patch # User Thibaut Girka # Date 1327352680 -3600 # Node ID 35644a67ba4cc956a464c8aa5eada7d43c0f3567 # Parent 3a86c4e070dc8798efe3833df87dfd841b4e6fcd Fix Sakuya's bouncing knives diff --git a/pytouhou/game/bullet.pyx b/pytouhou/game/bullet.pyx --- 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