X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=rocks.c;h=9983809a6d6ffabd8b2a202f2dd39f908d2dd8ec;hp=9384fe039b46856ec62a81a1cfc022e8dbe6ff95;hb=ccf89f8e427d968ebf12cd924b491c485b5793f5;hpb=f68d2bb77d8b4d94af72b6cbe870d423ed82b17f diff --git a/rocks.c b/rocks.c index 9384fe0..9983809 100644 --- a/rocks.c +++ b/rocks.c @@ -4,7 +4,7 @@ #include #include "common.h" -#include "config.h" +#include "vorconfig.h" #include "file.h" #include "globals.h" #include "mt.h" @@ -175,14 +175,14 @@ new_rocks(void) r->dy = RDY*crnd(); break; case BOTTOM: - r->x = frnd()*(XSIZE + r->image->w); + r->x = (frnd()*(XSIZE + r->image->w)) - r->image->w; r->y = YSIZE; r->dx = RDX*crnd(); r->dy = -weighted_rnd_range(rmin[i], rmax[i]) + screendy; break; case TOP: - r->x = frnd()*(XSIZE + r->image->w); + r->x = (frnd() * (XSIZE + r->image->w)) - r->image->w; r->y = -r->image->h; r->dx = RDX*crnd();