X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=planets.c;h=5ed87df431216c5bc03e90e79c361fd5115c15b2;hb=80aa958a55a62baa32586414ac671ee450369d25;hp=ae7a7aad880e354214f97808eedf27afb819f99c;hpb=49483a1747cd310e33eea758b32a453fb46d4aac;p=super-star-trek.git diff --git a/planets.c b/planets.c index ae7a7aa..5ed87df 100644 --- a/planets.c +++ b/planets.c @@ -78,16 +78,11 @@ void orbit(void) { height = (1400.+7200.*Rand()); prout("Sulu- \"Entered orbit at altitude %.2f kilometers.\"", height); inorbit = 1; -#ifdef SERGEEV ididit=1; -#endif /* SERGEEV */ } void sensor(void) { -#ifdef SERGEEV - if (game.damage[DSRSENS] != 0.0) return; - if ((plnetx != 0)&&(game.state.plnets[iplnet].known == 0)) { -#else +#ifndef SERGEEV skip(1); chew(); if (game.damage[DSRSENS] != 0.0) { @@ -98,7 +93,9 @@ void sensor(void) { prout("No planet in this quadrant."); return; } -#endif /* SERGEEV */ +#else + if (game.damage[DSRSENS] != 0.0) return; + if ((plnetx != 0)&&(game.state.plnets[iplnet].known == 0)) { prout("Spock- \"Sensor scan for %s-", cramlc(quadrant, quadx, quady)); skip(1); prout(" Planet at %s is of class %s.", @@ -110,7 +107,6 @@ void sensor(void) { if (game.state.plnets[iplnet].crystals == 0) proutn(" no"); prout(" dilithium crystals present.\""); if (game.state.plnets[iplnet].known == unknown) game.state.plnets[iplnet].known = known; -#ifdef SERGEEV } #endif /* SERGEEV */ } @@ -176,9 +172,7 @@ void beam(void) { skip(1); prout("Kirk- \"Energize.\""); } -#ifdef SERGEEV ididit=1; -#endif /* SERGEEV */ skip(1); prouts("WWHOOOIIIIIRRRRREEEE.E.E. . . . . . ."); skip(2); @@ -230,9 +224,7 @@ void mine(void) { if (consumeTime()) return; prout("Mining operation complete."); imine = 1; -#ifdef SERGEEV ididit=1; -#endif /* SERGEEV */ } void usecrystals(void) { @@ -282,9 +274,7 @@ void usecrystals(void) { prout(" are going crazy, but I think it's"); prout(" going to work!! Congratulations, Sir!\""); cryprob *= 2.0; -#ifdef SERGEEV ididit=1; -#endif /* SERGEEV */ } void shuttle(void) {