More magic-number chasing.
[super-star-trek.git] / planets.c
index 35ccec7550e1cea3585ce59e10900e7e1af2f3cb..a46e0e2c1d4b8000b6347728d9a8b3d1c01bed50 100644 (file)
--- 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*.");