announce ("\nreceiving battle information. You can display what");
announce ("\nthey've learned with the ''E'' command.");
resigned = true;
- win = 2;
+ win = ratio_win;
automove = false;
}
else if (ncomp_city == 0 && ncomp_army == 0) {
announce ("You are free to rape the empire as you wish.\n");
announce ("There may be, however, remnants of the enemy fleet\n");
announce ("to be routed out and destroyed.\n");
- win = 1;
+ win = wipeout_win;
automove = false;
}
else if (nuser_city == 0 && nuser_army == 0) {
long len; /* number of items in list */
long list[MAP_SIZE]; /* list of locations */
} perimeter_t;
+
+enum win_t {no_win, wipeout_win, ratio_win};
+
+/* end */
print_vmap = false;
trace_pmap = false;
save_movie = false;
- win = 0;
+ win = no_win;
date = 0; /* no date yet */
user_score = 0;
comp_score = 0;
*/
static path_map_t pmap_init[MAP_SIZE];
-static int init_done = 0;
+static bool init_done = false;
STATIC void
start_perimeter(path_map_t *pmap, perimeter_t *perim, loc_t loc, int terrain)
if (!init_done) {
int i;
- init_done = 1;
+ init_done = true;
for (i = 0; i < MAP_SIZE; i++) {
pmap_init[i].cost = INFINITY; /* everything lies outside perim */
pmap_init[i].terrain = T_UNKNOWN;