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 af3f153906eed6c1f7180e37d622a0749ddc9d3d..9df26c62a865f555458c8e0a1acfb6e16ee2bddc 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