No longer needed.
[super-star-trek.git] / sst.c
diff --git a/sst.c b/sst.c
index 8ba3b4ff6448fe7f256777c14c222f477888f9ca..8d30bde57ded84a318f15e690932dad7359a5020 100644 (file)
--- a/sst.c
+++ b/sst.c
@@ -87,11 +87,14 @@ Here are Stas Sergeev's changes:
 
 Eric Raymond's changes:
 
 
 Eric Raymond's changes:
 
+ Mainly, I translated this C code out of FORTRAN into C -- created #defines
+   for a lot of magic numbers.
+
    1. "sos" and "call" becomes "mayday", "freeze" and "save" are both good.
 
    2. Status report now indicates when dilithium crystals are on board.
 
    1. "sos" and "call" becomes "mayday", "freeze" and "save" are both good.
 
    2. Status report now indicates when dilithium crystals are on board.
 
-   3. Can now report vbases left in scrscan.
+   3. Can now report starbases left in scrscan.
 
    */
 
 
    */
 
@@ -369,7 +372,7 @@ static void makemoves(void) {
                                 score();
                                break;
                        case SENSORS:                   // sensors
                                 score();
                                break;
                        case SENSORS:                   // sensors
-                               sensor();
+                               sensor(TRUE);
                                break;
                        case ORBIT:                     // orbit
                                orbit();
                                break;
                        case ORBIT:                     // orbit
                                orbit();
@@ -420,7 +423,7 @@ static void makemoves(void) {
                        case SAVE:                      // Save Game
                                freeze(FALSE);
                                 clrscr();
                        case SAVE:                      // Save Game
                                freeze(FALSE);
                                 clrscr();
-                               if (skill > 3)
+                               if (skill > SKILL_GOOD)
                                         prout("WARNING--Saved games produce no plaques!");
                                break;
                        case DEATHRAY:          // Try a desparation measure
                                         prout("WARNING--Saved games produce no plaques!");
                                break;
                        case DEATHRAY:          // Try a desparation measure
@@ -588,14 +591,9 @@ double Rand(void) {
        return rand()/(1.0 + (double)RAND_MAX);
 }
 
        return rand()/(1.0 + (double)RAND_MAX);
 }
 
-void iran8(int *i, int *j) {
-       *i = Rand()*8.0 + 1.0;
-       *j = Rand()*8.0 + 1.0;
-}
-
-void iran10(int *i, int *j) {
-       *i = Rand()*10.0 + 1.0;
-       *j = Rand()*10.0 + 1.0;
+void iran(int size, int *i, int *j) {
+    *i = Rand()*(size*1.0) + 1.0;
+    *j = Rand()*(size*1.0) + 1.0;
 }
 
 void chew(void) {
 }
 
 void chew(void) {