X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=setup.c;h=5b8c20d2b65c1798caa07f31aa60e515be3b8dda;hp=002188291aff1dafc53b7b9cf80c1ddf0dfcbca9;hb=03ea69145938e4b01e7efc6be80a543bad1739c7;hpb=404aca234d55a8d9ba7b6573b3c100c940b42fe8 diff --git a/setup.c b/setup.c index 0021882..5b8c20d 100644 --- a/setup.c +++ b/setup.c @@ -179,7 +179,7 @@ void abandn(void) { return; } -void setup(void) { +void setup(int needprompt) { int i,j, krem, klumper; int ix, iy; alldone = gamewon = 0; @@ -187,7 +187,7 @@ void setup(void) { idebug = 0; #endif // Decide how many of everything - if (choose()) return; // frozen game + if (choose(needprompt)) return; // frozen game // Prepare the Enterprise ship = IHE; energy = inenrg = 5000.0; @@ -372,23 +372,20 @@ void setup(void) { proutn(cramlc(sector, sectx, secty)); skip(2); prout("Good Luck!"); - if (game.state.nscrem) proutn(" YOU'LL NEED IT."); - skip(1); + if (game.state.nscrem) prout(" YOU'LL NEED IT."); newqad(0); if (nenhere) shldup=1.0; if (neutz) attack(0); // bad luck to start in a Romulan Neutral Zone } -int choose(void) { +int choose(int needprompt) { tourn = 0; thawed = 0; skill = 0; length = 0; while (TRUE) { - if (fromcommandline) /* Can start with command line options */ - fromcommandline = 0; - else - proutn("Would you like a regular, tournament, or frozen game?"); + if (needprompt) /* Can start with command line options */ + proutn("Would you like a regular, tournament, or frozen game?"); scan(); if (strlen(citem)==0) continue; // Try again if (isit("tournament")) {