Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
removed new ship fade, blast leaves rocks collidable, some refactoring.
[vor.git]
/
sprite.c
diff --git
a/sprite.c
b/sprite.c
index
aadf22d
..
809547b
100644
(file)
--- a/
sprite.c
+++ b/
sprite.c
@@
-292,6
+292,8
@@
int
pixel_collide(Sprite *s, int x, int y)
{
uint32_t pmask;
+
+ if(!COLLIDES(s)) return false;
if(x < s->x || y < s->y || x >= s->x + s->w || y >= s->y + s->h) return 0;