Fire, relative: I'm certain the reference implementation is wrong.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 17 Mar 2010 04:56:54 +0000 (21:56 -0700)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 17 Mar 2010 04:56:54 +0000 (21:56 -0700)
bulletml/impl.py

index af3f153..9df26c6 100644 (file)
@@ -147,8 +147,11 @@ class Action(object):
                     if type == "sequence":
                         speed += self.previous_fire_speed
                     elif type == "relative":
-                        # FIXME(jfw): Reference impl uses prvFireSpeed
-                        # here?  That doesn't seem right at all.
+                        # The reference Noiz implementation uses
+                        # prvFireSpeed here, but the standard is
+                        # pretty clear -- "0 means that the direction
+                        # of this fire and the direction of the bullet
+                        # are the same".
                         speed += self.owner.speed
                 else:
                     speed = 1