}
-int max(int a, int b) {
- if (a > b) return a;
- return b;
-}
-
-int min(int a, int b) {
- if (a < b) return a;
- return b;
-}
-
.c.o:
$(CC) $(CFLAGS) -c $<
-CFILES= sst.c finish.c reports.c setup.c linux.c moving.c battle.c events.c ai.c planets.c
+CFILES= sst.c finish.c reports.c setup.c moving.c battle.c events.c ai.c planets.c
OFILES= $(CFILES:.c=.o)
HFILES=sst.h
DOCS = README sst-doc.xml sst.xml TODO
void randomize(void) {\r
srand((int)time(NULL));\r
}\r
-\r
-\r
-int max(int a, int b) {\r
- if (a > b) return a;\r
- return b;\r
-}\r
-\r
-int min(int a, int b) {\r
- if (a < b) return a;\r
- return b;\r
-}\r
if (neutz) attack(0); // bad luck to start in a Romulan Neutral Zone\r
}\r
\r
+void randomize(void) {\r
+ srand((int)time(NULL));\r
+}\r
+\r
int choose(int needprompt) {\r
tourn = 0;\r
thawed = 0;\r
void crmena(int i, int enemy, int key, int x, int y) {\r
if (i == 1) proutn("***");\r
cramen(enemy);\r
- proutn(" at");\r
+ proutn(" at ");\r
proutn(cramlc(key, x, y));\r
}\r
\r
#define EXTERN\r
#endif\r
\r
+#define min(x, y) ((x)<(y)?(x):(y))\r
+#define max(x, y) ((x)>(y)?(x):(y))\r
+\r
// #define DEBUG\r
\r
#define NDEVICES (15) // Number of devices\r