#include <string.h>
#include "common.h"
-#include "config.h"
+#include "vorconfig.h"
#include "file.h"
#include "globals.h"
#include "mt.h"
type = urnd() % NROCKS;
*r = prototypes[type];
r->type = type;
+ r->life = r->area * 300;
switch(i) {
case RIGHT:
r->x = XSIZE;
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();