Skip to content

Commit

Permalink
1.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
banister committed Dec 9, 2009
1 parent 9d44fb5 commit 85bb2ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/turret.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def track_target
# shoot if lined up
if (@barrel_theta - target_theta).abs < 1
before(2, :name => :bullet_timeout, :preserve => true) do
@playgame.objects << Bullet.new(@playgame, *barrel_tip, 2, @barrel_theta)
@playgame.objects << Bullet.new(@playgame, barrel_tip[0], barrel_tip[1], 2, @barrel_theta)
end
end
else
Expand Down

0 comments on commit 85bb2ec

Please sign in to comment.