X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=setup.c;h=dff55e8922c3f68035972b04fee7ee3b5b1ea2a7;hb=5952a98d5a83ad6ed9dfe7821ed427504f280af1;hp=58f45f175b8d12593d592c00f8f0a3ead10edf4a;hpb=80aa958a55a62baa32586414ac671ee450369d25;p=super-star-trek.git diff --git a/setup.c b/setup.c index 58f45f1..dff55e8 100644 --- a/setup.c +++ b/setup.c @@ -1,6 +1,5 @@ #include #include -#include "conio.h" #include "sst.h" #ifdef __linux__ @@ -15,7 +14,7 @@ void prelim(void) { skip(2); prout("-SUPER- STAR TREK"); skip(1); -#ifndef __HISTORICAL__ +#ifdef __HISTORICAL__ prout("Latest update-21 Sept 78"); skip(1); #endif /* __HISTORICAL__ */ @@ -385,9 +384,7 @@ void setup(int needprompt) { skip(2); prout("Good Luck!"); if (game.state.nscrem) prout(" YOU'LL NEED IT."); -#ifdef SERGEEV - getche(); -#endif /* SERGEEV */ + waitfor(); newqad(0); if (nenhere-iqhere-ithere) shldup=1.0; if (neutz) attack(0); // bad luck to start in a Romulan Neutral Zone @@ -420,19 +417,13 @@ int choose(int needprompt) { srand((unsigned int)(int)aaitem); break; } - if (isit("frozen") || isit("frozen")) { + if (isit("saved") || isit("frozen")) { if (thaw()) continue; chew(); -#ifndef SERGEEV if (*game.passwd==0) continue; - randomize(); - Rand(); Rand(); Rand(); Rand(); -#endif if (!alldone) thawed = 1; // No plaque if not finished report(); -#ifdef SERGEEV - getche(); -#endif /* SERGEEV */ + waitfor(); return TRUE; } if (isit("regular")) break; @@ -463,18 +454,7 @@ int choose(int needprompt) { else if (skill == 0) proutn("Are you a Novice, Fair, Good, Expert, or Emeritus player? "); } } -#ifndef SERGEEV - while (TRUE) { - scan(); - strcpy(game.passwd, citem); - chew(); - if (*game.passwd != 0) break; - proutn("Please type in a secret password-"); - } -#else - for(i=0;i<3;i++) game.passwd[i]=(char)(97+(int)(Rand()*25)); - game.passwd[3]=0; -#endif /* SERGEEV */ + setpassword(); #ifdef DEBUG if (strcmp(game.passwd, "debug")==0) idebug = 1; #endif