More magic-number fixes.
[super-star-trek.git] / reports.c
index 4c3fd33c896b94eef7cb4063b53c6a3db5437301..f71b8c50350d664b5c60cc8048225b53964d2a5a 100644 (file)
--- a/reports.c
+++ b/reports.c
@@ -257,11 +257,11 @@ int srscan(int l) {
        break;
     }
     if (condit != IHDOCKED) newcnd();
-    for (i = 1; i <= 10; i++) {
+    for (i = 1; i <= QUADSIZE; i++) {
        jj = (k!=0 ? k : i);
        if (leftside) {
            proutn("%2d  ", i);
-           for (j = 1; j <= 10; j++) {
+           for (j = 1; j <= QUADSIZE; j++) {
                if (goodScan || (abs(i-sectx)<= 1 && abs(j-secty) <= 1)){
                    if ((game.quad[i][j]==IHMATER0)||(game.quad[i][j]==IHMATER1)||(game.quad[i][j]==IHMATER2)||(game.quad[i][j]==IHE)||(game.quad[i][j]==IHF)){
                        switch (condit) {