From: Joshua Grams Date: Mon, 13 Dec 2004 22:01:25 +0000 (+0000) Subject: oops, can't remember that && has higher precedence than ||. X-Git-Tag: 0.1~32 X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=commitdiff_plain;h=0b36c07b7161b0f4d5f1ffe7dceb16b759395672 oops, can't remember that && has higher precedence than ||. Also need to move blast (and ship) forwards if we're at the left edge. --- diff --git a/main.c b/main.c index 68c77a4..de95347 100644 --- a/main.c +++ b/main.c @@ -1005,8 +1005,6 @@ int gameloop() { state = GAMEPLAY; play_tune(1); xship -= 50; - // xvel = 3; - // yvel = 0; break; case GAME_OVER: state = HIGH_SCORE_ENTRY; @@ -1054,6 +1052,7 @@ int gameloop() { } else { if(state == DEAD_PAUSE) { float blast_radius = START_RAD * state_timeout / 50.0; + if(xship < 60) xship = 60; for(i = 0; i YSIZE) rock[i].active = 0; + if(rock[i].dead && (rock[i].y < 0 || rock[i].y > YSIZE)) rock[i].active = 0; if(rock[i].y > YSIZE) { rock[i].y -= YSIZE; rock[i].y -= rock[i].image->w;