# HG changeset patch # User Thibaut Girka # Date 1317673203 -7200 # Node ID 30338dc33a7ba22b7f070e55e437ed3ff4eee99a # Parent cadfc5e5ad7adacc970128144eb439f5154cd0f4 Fix bullet orientation in some cases (Meiling's last spellcard) diff --git a/pytouhou/game/bullet.py b/pytouhou/game/bullet.py --- a/pytouhou/game/bullet.py +++ b/pytouhou/game/bullet.py @@ -137,6 +137,9 @@ class Bullet(object): length, angle = self.attributes[4:6] angle = self.angle if angle < -900.0 else angle #TODO: is that right? dx, dy = dx + cos(angle) * length, dy + sin(angle) * length + self.angle = sprite.angle = atan2(dy, dx) + if sprite.automatic_orientation: + sprite._changed = True self.delta = dx, dy if self.frame == frame: #TODO: include last frame, or not? if count > 0: