repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git]
/
slingshot
/
player.patch
blob
4d5795e465cb14a8122120afad1ae652f040ee53
1
--- player.py 2007-07-13 20:27:18.000000000 +0200
2
+++ player.py.patched 2011-07-02 22:24:11.000000000 +0200
3
@@ -237,8 +237,8 @@
4
y = round(pos[1] - self.rect.topleft[1])
5
if x <= 1 or y <= 1:
6
return False
7
- x = x - 1
8
- y = y - 1
9
+ x = int(x - 1)
10
+ y = int(y - 1)
11
if not self.image.get_at((x,y)) == (0,0,0,0):
12
self.shot = True
13
return True