X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=rocks.c;h=701e5a5c85926126609ce8290e6ed676d0dbc38d;hp=89efb6ec5172b3733a4387a46b8b2abcba066709;hb=9a9572d121946fef90a24ea5514a0c3ca33b1ae5;hpb=5c8f059629c2127848ce4051296d2f5897bf5c0f diff --git a/rocks.c b/rocks.c index 89efb6e..701e5a5 100644 --- a/rocks.c +++ b/rocks.c @@ -45,13 +45,14 @@ load_rocks(void) for(i=0; i= 1) { rtimers[i] -= 1; - if(!free_sprites[ROCK_SPRITE]) return; // sorry, we ran out of rocks! - r = (struct rock *) remove_sprite(&free_sprites[ROCK_SPRITE]); + if(!free_sprites[ROCK]) return; // sorry, we ran out of rocks! + r = (struct rock *) remove_sprite(&free_sprites[ROCK]); type = urnd() % NROCKS; *r = prototypes[type]; r->type = type; @@ -206,7 +207,7 @@ blast_rocks(float x, float y, float radius) float dx, dy, n; for(i=0; ix <= 0) continue;