- if(state == GAMEPLAY) {
- for(i = 0; i<newdots*gamerate; i++) {
- if(dotptr->active == 0) {
- theta = rnd()*M_PI*2;
- r = rnd();
- dx = cos(theta)*r;
- dy = sin(theta)*r;
-
- dotptr->active = 1;
- dotptr->x = shipx + surf_ship->w/2-14;
- dotptr->y = shipy + surf_ship->h/2 + (rnd()-0.5)*5-1;
- dotptr->dx = 10*(dx-1.5) + shipdx;
- dotptr->dy = 1*dy + shipdy;
- dotptr->life = 45 + rnd(1)*5;
-
- dotptr++;
- if(dotptr-edot >= MAXENGINEDOTS) {
- dotptr = edot;
- }
- }
- }
- }
-}
-
-void
-create_engine_dots2(int newdots, int m) {
- int i;
- double theta, theta2, dx, dy, adx, ady;
-
- // Don't create fresh engine dots when
- // the game is not being played and a demo is not beng shown
- if(state != GAMEPLAY) return;
-
- for(i = 0; i<newdots; i++) {