(dist_sq): unnecessary, removed.
extern char *optarg;
extern int optind, opterr, optopt;
-float dist_sq(float x1, float y1, float x2, float y2)
-{
- return (x2-x1)*(x2-x1) + (y2-y1)*(y2-y1);
-}
-
// ************************************* FUNCS
float
// Play the explosion sound
play_sound(0);
makebangdots(shipx,shipy,shipdx,shipdy,surf_ship,30);
+ shipdx = 0;
+ shipdy = 0;
if(--nships <= 0) {
gameover = 1;
state = GAME_OVER;
else {
state = DEAD_PAUSE;
state_timeout = DEAD_PAUSE_LENGTH;
- shipdx = 0;
- shipdy = 0;
}
}