X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Fsetup.c;h=600afc43dbfb102494c113bb35469bc16249bf55;hb=0e9bdbb882f74cad6af644e3e1b530f9ffbf5e8d;hp=e56e1e3f3585b5540009e5095f732d806ea650e3;hpb=fec5bf04131385b55dc3b0ad9c7d8d245a7d07da;p=super-star-trek.git diff --git a/src/setup.c b/src/setup.c index e56e1e3..600afc4 100644 --- a/src/setup.c +++ b/src/setup.c @@ -208,7 +208,7 @@ void abandn(void) prout("the Faerie Queene, which is antiquated but,"); prout("still useable."); if (game.icrystl!=0) prout("The dilithium crystals have been moved."); - game.imine=0; + game.imine = false; game.iscraft=0; /* Galileo disappears */ /* Resupply ship */ game.condit=IHDOCKED; @@ -225,14 +225,14 @@ void abandn(void) return; } -void setup(int needprompt) +void setup(bool needprompt) { int i,j, krem, klumper; int ix, iy; // Decide how many of everything if (choose(needprompt)) return; // frozen game // Prepare the Enterprise - game.alldone = game.gamewon = 0; + game.alldone = game.gamewon = false; game.ship = IHE; game.state.crew = FULLCREW; game.energy = game.inenrg = 5000.0; @@ -253,8 +253,8 @@ void setup(int needprompt) game.battle.x = game.battle.y = 0; game.state.date = game.indate = 100.0*(int)(31.0*Rand()+20.0); game.nkinks = game.nhelp = game.casual = game.abandoned = 0; - game.resting = false; - game.isatb = game.iscate = game.imine = game.icrystl = game.icraft = game.state.nplankl = 0; + game.resting = game.imine = false; + game.isatb = game.iscate = game.icrystl = game.icraft = game.state.nplankl = 0; game.state.starkl = game.state.basekl = 0; game.iscraft = 1; game.landed = -1;