X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=setup.c;h=d729c615576ba411ca1d8dd6a0cbd15df19780ab;hb=da2f73007084eae1bea420240a7499e0f26babf7;hp=17c14cf030e59b231e24d6f5e3e8911178650dd7;hpb=797f0f77ccdfd001fff39396ceae760478c2b920;p=super-star-trek.git diff --git a/setup.c b/setup.c index 17c14cf..d729c61 100644 --- a/setup.c +++ b/setup.c @@ -237,12 +237,12 @@ void setup(int needprompt) game.future[FTBEAM] = game.state.date + expran(1.5 * (intime / game.state.remcom)); game.future[FSNAP] = game.state.date + 1.0 + Rand(); // Force an early snapshot game.future[FBATTAK] = game.state.date + expran(0.3*intime); - game.future[FCDBAS] = 1e30; - game.future[FSCMOVE] = game.state.nscrem ? game.state.date+0.2777 : 1e30; - game.future[FSCDBAS] = 1e30; - game.future[FDSPROB] = 1e30; - // Starchart is functional - stdamtim = 1e30; + game.future[FCDBAS] = FOREVER; + game.future[FSCMOVE] = game.state.nscrem ? game.state.date+0.2777 : FOREVER; + game.future[FSCDBAS] = FOREVER; + game.future[FDSPROB] = FOREVER; + // Starchart is functional but we've never seen it + lastchart = FOREVER; // Put stars in the galaxy instar = 0; for_quadrants(i) @@ -261,7 +261,7 @@ void setup(int needprompt) for (j = i-1; j > 0; j--) { /* Improved placement algorithm to spread out bases */ double distq = square(ix-game.state.baseqx[j]) + square(iy-game.state.baseqy[j]); - if (distq < 6.0*(BASEMAX-inbase) && Rand() < 0.75) { + if (distq < 6.0*(BASEMAX+1-inbase) && Rand() < 0.75) { contflag = TRUE; #ifdef DEBUG proutn("DEBUG: Abandoning base #%d at %d-%d\n", i, ix, iy); @@ -269,7 +269,7 @@ void setup(int needprompt) break; } #ifdef DEBUG - else if (distq < 6.0 * (BASEMAX-inbase)) { + else if (distq < 6.0 * (BASEMAX+1-inbase)) { proutn("DEBUG: saving base #%d, close to #%d\n", i, j); } #endif @@ -469,7 +469,7 @@ int choose(int needprompt) // Use parameters to generate initial values of things damfac = 0.5 * skill; - game.state.rembase = 3.0*Rand()+2.0; + game.state.rembase = 2.0 + Rand()*(BASEMAX-2.0); inbase = game.state.rembase; if (game.options & OPTION_PLANETS) inplan = (PLNETMAX/2) + (PLNETMAX/2+1)*Rand();