skip(1);\r
prout("Force of nova displaces starship.");\r
iattak=2; /* Eliminates recursion problem */\r
- move();\r
+ imove();\r
Time = 10.0*dist/16.0;\r
return;\r
}\r
if (game.damage[DRADIO] == 0.0 || condit == IHDOCKED) {\r
skip(1);\r
prout("Message from Starfleet Command Stardate %.2f", game.state.date);\r
- proutn(" Supernova in %s; caution advised.",\r
+ prout(" Supernova in %s; caution advised.",\r
cramlc(quadrant, nqx, nqy));\r
}\r
}\r
all: sst sst.doc
sst: $(OFILES)
- gcc -o sst $(OFILES) -lm
+ gcc -o sst $(OFILES) -lm -lcurses
$(OFILES): $(HFILES)
\r
static void getcd(int, int);\r
\r
-void move(void) {\r
+void imove(void) {\r
double angle, deltax, deltay, bigger, x, y,\r
finald, finalx, finaly, stopegy;\r
int trbeam = 0, n, l, ix, iy, kink, kinks, iquad;\r
if (ja() == 0) return;\r
}\r
/* Activate impulse engines and pay the cost */\r
- move();\r
+ imove();\r
ididit = 1;\r
if (alldone) return;\r
power = 20.0 + 100.0*dist;\r
\r
\r
/* Activate Warp Engines and pay the cost */\r
- move();\r
+ imove();\r
if (alldone) return;\r
energy -= dist*warpfac*warpfac*warpfac*(shldup+1);\r
if (energy <= 0) finish(FNRG);\r
game.starch[x][y] = game.damage[DRADIO] > 0 ? game.state.galaxy[x][y]+1000 :1;\r
}\r
}\r
- putchar('\n');\r
+ skip(1);\r
}\r
\r
}\r
int hitme;\r
char ch;\r
\r
- prelim(); \r
iostart();\r
+ prelim(); \r
line[0] = '\0';\r
if (argc > 1) {\r
while (--argc > 0) {\r
if (!ja()) break;\r
}\r
skip(1);\r
- prout("May the Great Bird of the Galaxy roost upon your home planet.");\r
+ ioend();\r
+ puts("May the Great Bird of the Galaxy roost upon your home planet.");\r
}\r
\r
\r
"D. S. Probe"}; \r
#endif\r
\r
+#ifndef TRUE\r
#define TRUE (1)\r
#define FALSE (0)\r
+#endif\r
\r
#define IHR 'R'\r
#define IHK 'K'\r
void dropin(int, int*, int*);\r
void newcnd(void);\r
void sortkl(void);\r
-void move(void);\r
+void imove(void);\r
void ram(int, int, int, int);\r
void crmena(int, int, int, int, int);\r
void deadkl(int, int, int, int, int);\r
void probe(void);\r
void clearscreen(void);\r
void iostart(void);\r
+void ioend(void);\r
void getline(char *, int);\r