JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
removed new ship fade, blast leaves rocks collidable, some refactoring.
[vor.git] / 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;
 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;
 
        
        if(x < s->x || y < s->y || x >= s->x + s->w || y >= s->y + s->h) return 0;