More magic-number chasing, and the "Bases left" report.
[super-star-trek.git] / sst.c
diff --git a/sst.c b/sst.c
index 89e069d51696293328651b8a716f6754a14e7120..8ba3b4ff6448fe7f256777c14c222f477888f9ca 100644 (file)
--- a/sst.c
+++ b/sst.c
@@ -91,11 +91,13 @@ Eric Raymond's changes:
 
    2. Status report now indicates when dilithium crystals are on board.
 
+   3. Can now report vbases left in scrscan.
+
    */
 
 /* the input queue */
 static char line[128], *linep = line;
-static usecurses = TRUE;
+static int usecurses = TRUE;
 
 static struct 
 {
@@ -454,14 +456,14 @@ static void makemoves(void) {
                                events();
                                if (alldone) break;             // Events did us in
                        }
-                       if (game.state.galaxy[quadx][quady] == 1000) { // Galaxy went Nova!
+                       if (game.state.galaxy[quadx][quady] == SUPERNOVA_PLACE) { // Galaxy went Nova!
                                atover(0);
                                continue;
                        }
                        if (hitme && justin==0) {
                                attack(2);
                                if (alldone) break;
-                               if (game.state.galaxy[quadx][quady] == 1000) {  // went NOVA! 
+                               if (game.state.galaxy[quadx][quady] == SUPERNOVA_PLACE) {       // went NOVA! 
                                        atover(0);
                                        hitme = TRUE;
                                        continue;