projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pull SERGEEV dependencies out of reports.c.
[super-star-trek.git]
/
planets.c
diff --git
a/planets.c
b/planets.c
index 3de87c34405b99a733bd54bc2ebb5e6a5e4c2288..5ed87df431216c5bc03e90e79c361fd5115c15b2 100644
(file)
--- a/
planets.c
+++ b/
planets.c
@@
-78,10
+78,11
@@
void orbit(void) {
height = (1400.+7200.*Rand());
prout("Sulu- \"Entered orbit at altitude %.2f kilometers.\"", height);
inorbit = 1;
height = (1400.+7200.*Rand());
prout("Sulu- \"Entered orbit at altitude %.2f kilometers.\"", height);
inorbit = 1;
-
return
;
+
ididit=1
;
}
void sensor(void) {
}
void sensor(void) {
+#ifndef SERGEEV
skip(1);
chew();
if (game.damage[DSRSENS] != 0.0) {
skip(1);
chew();
if (game.damage[DSRSENS] != 0.0) {
@@
-92,6
+93,9
@@
void sensor(void) {
prout("No planet in this quadrant.");
return;
}
prout("No planet in this quadrant.");
return;
}
+#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.",
prout("Spock- \"Sensor scan for %s-", cramlc(quadrant, quadx, quady));
skip(1);
prout(" Planet at %s is of class %s.",
@@
-103,7
+107,8
@@
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;
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;
- return;
+ }
+#endif /* SERGEEV */
}
void beam(void) {
}
void beam(void) {
@@
-167,6
+172,7
@@
void beam(void) {
skip(1);
prout("Kirk- \"Energize.\"");
}
skip(1);
prout("Kirk- \"Energize.\"");
}
+ ididit=1;
skip(1);
prouts("WWHOOOIIIIIRRRRREEEE.E.E. . . . . . .");
skip(2);
skip(1);
prouts("WWHOOOIIIIIRRRRREEEE.E.E. . . . . . .");
skip(2);
@@
-193,8
+199,6
@@
void beam(void) {
}
void mine(void) {
}
void mine(void) {
-
- ididit = 0;
skip(1);
chew();
if (landed!= 1) {
skip(1);
chew();
if (landed!= 1) {
@@
-220,11
+224,11
@@
void mine(void) {
if (consumeTime()) return;
prout("Mining operation complete.");
imine = 1;
if (consumeTime()) return;
prout("Mining operation complete.");
imine = 1;
-
return
;
+
ididit=1
;
}
void usecrystals(void) {
}
void usecrystals(void) {
-
+ ididit=0;
skip(1);
chew();
if (icrystl!=1) {
skip(1);
chew();
if (icrystl!=1) {
@@
-270,14
+274,13
@@
void usecrystals(void) {
prout(" are going crazy, but I think it's");
prout(" going to work!! Congratulations, Sir!\"");
cryprob *= 2.0;
prout(" are going crazy, but I think it's");
prout(" going to work!! Congratulations, Sir!\"");
cryprob *= 2.0;
-
return
;
+
ididit=1
;
}
void shuttle(void) {
chew();
skip(1);
}
void shuttle(void) {
chew();
skip(1);
- ididit = 0;
if(game.damage[DSHUTTL] != 0.0) {
if (game.damage[DSHUTTL] == -1.0) {
if (inorbit && game.state.plnets[iplnet].known == shuttle_down)
if(game.damage[DSHUTTL] != 0.0) {
if (game.damage[DSHUTTL] == -1.0) {
if (inorbit && game.state.plnets[iplnet].known == shuttle_down)
@@
-387,7
+390,6
@@
void shuttle(void) {
return;
}
}
return;
}
}
-
void deathray(void) {
double r = Rand();
void deathray(void) {
double r = Rand();