Compute the maximum number of bases from BASEMAX.
[super-star-trek.git] / sst.h
diff --git a/sst.h b/sst.h
index c9154adf43ea09aa879611bc2ba754cdd6800fa5..74f8d6ab3d863bf73f45a49570fac71360a37067 100644 (file)
--- a/sst.h
+++ b/sst.h
@@ -18,7 +18,7 @@
 #define PLNETMAX (10)
 #define GALSIZE        (8)
 #define QUADSIZE (10)
-#define BASEMAX        (6)
+#define BASEMAX        (5)
 
 /*
  * These macros hide the difference between 0-origin and 1-origin addressing.
@@ -52,8 +52,8 @@ typedef struct {
        killk,                  // Klingons killed
        killc,                  // commanders killed
        cx[QUADSIZE+1],cy[QUADSIZE+1],  // Commander quadrant coordinates
-       baseqx[BASEMAX],                // Base quadrant X
-       baseqy[BASEMAX],                // Base quadrant Y
+       baseqx[BASEMAX+1],              // Base quadrant X
+       baseqy[BASEMAX+1],              // Base quadrant Y
        isx, isy,               // Coordinate of Super Commander
        nscrem,                 // remaining super commanders
        nromkl,                 // Romulans killed