X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=rocks.c;h=bee1ca58770bda68f6b0f7e34dd5cca11f275f99;hp=e7f216162d7f34add03249903d119d517c2d9583;hb=1f33a47c0e3b72d6050b72926643812237dc3f49;hpb=446a34fd7d8133bc6c1f1fc998d813442849a2f2 diff --git a/rocks.c b/rocks.c index e7f2161..bee1ca5 100644 --- a/rocks.c +++ b/rocks.c @@ -261,6 +261,22 @@ hit_rocks(float x, float y, struct shape *shape) return 0; } +int +pixel_hit_rocks(float x, float y) +{ + int i; + float xoff, yoff; + + for(i=0; i