X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=planets.c;h=a46e0e2c1d4b8000b6347728d9a8b3d1c01bed50;hp=35ccec7550e1cea3585ce59e10900e7e1af2f3cb;hb=760ecf730c119682b414153a629ec2adc224434f;hpb=af5ed866d5a6dcf5d469c2128e509c8d8201e2f6 diff --git a/planets.c b/planets.c index 35ccec7..a46e0e2 100644 --- a/planets.c +++ b/planets.c @@ -22,7 +22,7 @@ static int consumeTime(void) { events(); /* Used to avoid if future[FSCMOVE] within time */ // future[FSNOVA] = asave; /*fails if game over, quadrant super-novas or we've moved to new quadrant*/ - if (alldone || game.state.galaxy[quadx][quady] == 1000 || justin != 0) return 1; + if (alldone || game.state.galaxy[quadx][quady] == SUPERNOVA_PLACE || justin != 0) return 1; return 0; } @@ -476,8 +476,8 @@ void deathray(void) { proutn("Spock- \"I believe the word is"); prouts(" *ASTONISHING*"); prout(" Mr. Sulu."); - for (i=1; i<=10; i++) - for (j=1; j<=10; j++) + for (i=1; i<=QUADSIZE; i++) + for (j=1; j<=QUADSIZE; j++) if (game.quad[i][j] == IHDOT) game.quad[i][j] = IHQUEST; prout(" Captain, our quadrant is now infested with"); prouts(" - - - - - - *THINGS*.");