Magic number elimination.
[super-star-trek.git] / planets.c
index 35ccec7550e1cea3585ce59e10900e7e1af2f3cb..322fb1e79bc3d296abb6e23e3641a2124e40f496 100644 (file)
--- a/planets.c
+++ b/planets.c
@@ -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*.");