X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=main.c;h=0e0188aa3ae614f39c18aa0a03a16af7686b30de;hp=4801df76373a811039e637e7b242ff78fdd157b8;hb=e19c2c96e7370d93f19c8b0741a5649c4bbe21ee;hpb=5b505719142e9a18b0b7fd025a13e64d207d1c3a diff --git a/main.c b/main.c index 4801df7..0e0188a 100644 --- a/main.c +++ b/main.c @@ -19,7 +19,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#undef DEBUG +#ifdef DEBUG +#include "debug.h" +#endif #include "config.h" #include "file.h" @@ -92,7 +94,6 @@ SDL_Surface *surf_ship, // Spaceship element *surf_life, // Indicator of number of ships remaining *surf_rock[NROCKS], // THE ROCKS - *surf_deadrock[NROCKS], // THE DEAD ROCKS *surf_font_big; // The big font SFont_Font *g_font; @@ -562,15 +563,11 @@ init(int fullscreen) { // Load all our lovely rocks for(i = 0; i 3)) { + continue; + } + dx = rock[i].x - shipx; dy = rock[i].y - shipy; + n = sqrt(dx*dx + dy*dy); if(n < blast_radius) { n *= 20; @@ -946,7 +963,7 @@ gameloop() { } else { state = DEAD_PAUSE; - state_timeout = 20.0; + state_timeout = DEAD_PAUSE_LENGTH; shipdx = 0; shipdy = 0; }