int value;
};
-#endif /* _FNLIST_H_ */
+#endif /* _FNLIST_H_ */
#if !defined(aix) && !defined(sgi)
#ifndef ultrix /* already defined in ultrix */
typedef char s_char; /* change to signed char for aix */
-#endif /* ultrix */
+#endif /* ultrix */
#else
typedef signed char s_char;
#endif /* !aix && !sgi */
struct qelem *q_back;
};
-#endif /* _QUEUE */
+#endif /* _QUEUE */
xyas(sp->sct_x, sp->sct_y, player->cnum));
nav_map(sp->sct_x, sp->sct_y, 1);
}
- if (!
- (p =
- getstarg(player->argp[3], "build span in what direction? ", buf))
+ if (!(p = getstarg(player->argp[3], "build span in what direction? ", buf))
|| !*p) {
return 0;
}
pr("Building from %s\n", xyas(sp->sct_x, sp->sct_y, player->cnum));
nav_map(sp->sct_x, sp->sct_y, 1);
}
- if (!
- (p =
- getstarg(player->argp[3], "build tower in what direction? ", buf))
+ if (!(p = getstarg(player->argp[3], "build tower in what direction? ", buf))
|| !*p) {
return 0;
}
cp = player->argp[2];
if ((*player->argp[0] == 'q') /*qsail command */ ||(cp && *cp == 'q')) {
return (show_sail(&nstr));
- } else if (*player->argp[0] == 'u' /*unsail command */
+ } else if (*player->argp[0] == 'u' /*unsail command */
|| (cp && *cp == '-')) {
return (cmd_unsail_ship(&nstr));
} else
/* must agree with dirch[] and DIR_ defines */
int diroff[][2] = {
{0, 0}, {1, -1}, {2, 0}, {1, 1}, {-1, 1}, {-2, 0}, {-1, -1}, {0, 0},
- {0, 0}
+ {0, 0}
};
/* this maps a character from a to z into the diroff mappings. It
/* must follow nation relation defines in nat.h */
s_char *relates[] = {
"At War", "Sitzkrieg", "Mobilizing", "Hostile", "Neutral", "Friendly",
- "Allied"
+ "Allied"
};
/* must follow reject flags defined in nat.h */
extern int shar();
extern int sail(); /* Forsman's hacks */
extern int foll();
-/**/ extern int mobq();
-/**/ extern int name();
+extern int mobq();
+extern int name();
extern int range();
extern int zdon();
extern int fuel();
{"drop <cargo-PLANES> <fighter-PLANES> <ap-SECT> <PATH|DESTINATION> <COMM>", 1, drop, C_MOD, NORM + MONEY + CAP},
{"dump <SECTS> [<fields>]", 0, dump, 0, NORM},
{"echo [<string>]", 0, echo, 0, NORM},
- {"edit <country|land|unit|ship|plane|nuke> [<KEY> <VALUE>]...", 0, edit, C_MOD, GOD},
+ {"edit <country|land|unit|ship|plane|nuke> [<KEY> <VALUE>]...", 0,
+ edit, C_MOD, GOD},
{"enable", 0, enab, C_MOD, GOD},
{"enlist <SECTS> <NUM>", 2, enli, C_MOD, NORM + MONEY + CAP},
{"execute <INPUT FILE>", 0, execute, 0, VIS},
pr("%s", buf);
continue;
}
- if (buffer[0] == '.' && ((buffer[1] == 0) ||
- (buffer[1] == '\n')
+ if (buffer[0] == '.' && ((buffer[1] == 0)
+ || (buffer[1] == '\n')
|| (buffer[1] == '\r')))
break;
len = strlen(buffer);
{
extern int land_max_interdiction_range;
extern int ship_max_interdiction_range;
- s_char *mission_name(short int mission), *nameofitem(s_char *buf,
- struct genitem
- *gp, int type);
struct emp_qelem *qp, missiles, bombers, escorts, airp, b, e;
struct emp_qelem *newqp;
struct genlist *glp;
dp = player_new(0, 0);
stacksize = 100000 +
/* finish_sects */ WORLD_X * WORLD_Y * (2 * sizeof(double) +
- sizeof(s_char *));
+ sizeof(s_char *));
empth_create(PP_UPDATE, update_main, stacksize, 0,
"UpdateRun", "Updates the world", dp);