}\r
newcnd();\r
iattak = 0;\r
+#ifdef SERGEEV\r
+ drawmaps(0);\r
+#endif /* SERGEEV */\r
return;\r
}\r
\r
return;\r
}\r
condit = IHDOCKED;\r
- prout("Docked.");\r
+ if (l) prout("Docked.");\r
+ ididit=1;\r
if (energy < inenrg) energy = inenrg;\r
shield = inshld;\r
torps = intorps;\r
game.damage[DRADIO] += Time;\r
}\r
newqad(0);\r
+#ifdef SERGEEV\r
+ events();\r
+#endif /* SERGEEV */\r
}\r
\r
void probe(void) {\r
probecy = quady;\r
game.future[FDSPROB] = game.state.date + 0.01; // Time to move one sector\r
prout("Ensign Chekov- \"The deep space probe is launched, Captain.\"");\r
+ ididit = 1;\r
return;\r
}\r
\r
void help(void) {\r
/* There's more than one way to move in this game! */\r
double ddist, xdist, probf;\r
- int line, l, ix, iy;\r
+ int line = 0, l, ix, iy;\r
+#ifdef SERGEEV\r
+ int pox, posy;\r
+#endif /* SERGEEV */\r
\r
chew();\r
/* Test for conditions which prevent calling for help */\r
proutn("");\r
crmshp();\r
prout(" dematerializes.");\r
+#ifdef SERGEEV\r
+ sectx=0;\r
+ for (l = 1; l <= 5; l++) {\r
+ ix = basex+3.0*Rand()-1;\r
+ iy = basey+3.0*Rand()-1;\r
+ if (ix>=1 && ix<=10 && iy>=1 && iy<=10 && game.quad[ix][iy]==IHDOT) {\r
+ /* found one -- finish up */\r
+ sectx=ix;\r
+ secty=iy;\r
+ game.quad[ix][iy]=IHMATER0;\r
+ break;\r
+ }\r
+ }\r
+ if (sectx==0){\r
+ prout("You have been lost in space...");\r
+ finish(FMATERIALIZE);\r
+ return;\r
+ }\r
+#endif /* SERGEEV */\r
/* Give starbase three chances to rematerialize starship */\r
probf = pow((1.0 - pow(0.98,ddist)), 0.33333333);\r
for (l = 1; l <= 3; l++) {\r