prout(".\"");\r
if (resting) {\r
skip(1);\r
- proutn("Mr. Spock- \"Captain, shall we cancel the rest period?\"");\r
+ proutn("Mr. Spock- \"Captain, shall we cancel the rest period?\" ");\r
if (ja()) {\r
resting = 0;\r
Time = 0.0;\r
}\r
newcnd();\r
iattak = 0;\r
+#ifdef SERGEEV\r
+ drawmaps(0);\r
+#endif /* SERGEEV */\r
return;\r
}\r
\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
skip(2);\r
prout("Good Luck!");\r
if (game.state.nscrem) prout(" YOU'LL NEED IT.");\r
+#ifdef SERGEEV\r
+ getche();\r
+#endif /* SERGEEV */\r
newqad(0);\r
if (nenhere-iqhere-ithere) shldup=1.0;\r
if (neutz) attack(0); // bad luck to start in a Romulan Neutral Zone\r
else {\r
chew();\r
if (length==0) proutn("Would you like a Short, Medium, or Long game? ");\r
- else if (skill == 0) proutn("Are you a Novice, Fair, Good, Expert, or Emeritus player?");\r
+ else if (skill == 0) proutn("Are you a Novice, Fair, Good, Expert, or Emeritus player? ");\r
}\r
}\r
+#ifndef SERGEEV\r
while (TRUE) {\r
scan();\r
strcpy(game.passwd, citem);\r
if (*game.passwd != 0) break;\r
proutn("Please type in a secret password-");\r
}\r
+#else\r
+ for(i=0;i<3;i++) game.passwd[i]=(char)(97+(int)(Rand()*25));\r
+ game.passwd[3]=0;\r
+#endif /* SERGEEV */\r
#ifdef DEBUG\r
if (strcmp(game.passwd, "debug")==0) idebug = 1;\r
#endif\r
if (energy < 1000.0) condit = IHYELLOW;\r
if (game.state.galaxy[quadx][quady] > 99 || game.state.newstuf[quadx][quady] > 9)\r
condit = IHRED;\r
+ if (!alive) condit=IHDEAD;\r
}\r
\r
\r
There are other minor adjustments to what yields an attack\r
and what does not.\r
\r
- 10. Ramming a black hole is no longer instant death. \r
+ 10. Ramming a black hole is no longer instant death. There is a\r
+ chance you might get timewarped instead.\r
\r
*/\r
\r
fclose(fp);\r
}\r
\r
+#ifdef SERGEEV\r
+void drawmaps(short l){\r
+ _setcursortype(_NOCURSOR);\r
+ if (l==1) sensor();\r
+ if (l!=2) setwnd(1);\r
+ gotoxy(1,1);\r
+ strcpy(line,"s");\r
+ srscan(1);\r
+ if (l!=2){\r
+ setwnd(2);\r
+ clrscr();\r
+ srscan(2);\r
+ setwnd(3);\r
+ clrscr();\r
+ strcpy(line,"l");\r
+ lrscan();\r
+ _setcursortype(_NORMALCURSOR);\r
+ }\r
+}\r
+#endif /* SERGEEV */\r
+\r
static void makemoves(void) {\r
int i, hitme;\r
while (TRUE) { /* command loop */\r