projects
/
python-bulletml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
506774e
)
Fire, relative: I'm certain the reference implementation is wrong.
author
Joe Wreschnig
<joe.wreschnig@gmail.com>
Wed, 17 Mar 2010 04:56:54 +0000
(21:56 -0700)
committer
Joe Wreschnig
<joe.wreschnig@gmail.com>
Wed, 17 Mar 2010 04:56:54 +0000
(21:56 -0700)
bulletml/impl.py
patch
|
blob
|
history
diff --git
a/bulletml/impl.py
b/bulletml/impl.py
index af3f153906eed6c1f7180e37d622a0749ddc9d3d..9df26c62a865f555458c8e0a1acfb6e16ee2bddc 100644
(file)
--- a/
bulletml/impl.py
+++ b/
bulletml/impl.py
@@
-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