Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixes Sentry Baseball error #1641

Closed
wants to merge 1 commit into from

2 participants

@CalebJohn
Owner

The error

I would have made an issue of sentry but I couldn't seem to get it to work.

So many things went wrong with this, but here it is, a small evil pull request.

@phamdaniel
Owner

LGTM

@phamdaniel
Owner

Github is being idiotic and won't let me send pull requests to any of the devs forks. (WHYYYY?)
so yeah.......... what im sending can either be in this pull or it's own separate one.
(I say this one as we have to edit the same file relating to somewhat of a similar bug)
phamdaniel@759abf2
This prevents things from being run on projectiles thrown by enemies and should fix the reports on Sentry about the basketball and the rainbowbeam

@CalebJohn
Owner

Outdated by #1654

@CalebJohn CalebJohn closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 7, 2013
  1. @CalebJohn

    can pickup baseball

    CalebJohn authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/nodes/projectile.lua
View
4 src/nodes/projectile.lua
@@ -168,8 +168,8 @@ function Projectile:update(dt)
end
function Projectile:keypressed( button, player)
- if self.player or self.thrown then return end
-
+ if self.player or self.thrown or self.playerCanPickUp then return end
+
if button == 'INTERACT' then
--the following invokes the constructor of the specific item's class
local Item = require 'items/item'
Something went wrong with that request. Please try again.