Cosmetics.

This commit is contained in:
Markus Armbruster 2003-12-17 21:26:26 +00:00
parent aa377df359
commit d8cb7c48f0
11 changed files with 15 additions and 21 deletions

View file

@ -743,9 +743,7 @@ build_bridge(register struct sctstr *sp, register int *vec)
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;
}
@ -1071,9 +1069,7 @@ build_tower(register struct sctstr *sp, register int *vec)
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;
}

View file

@ -148,8 +148,8 @@ extern int grin();
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();
@ -287,7 +287,8 @@ struct cmndstr player_coms[] = {
{"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},

View file

@ -76,8 +76,8 @@ getele(s_char *nation, s_char *buf)
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);

View file

@ -430,9 +430,6 @@ perform_mission(coord x, coord y, natid victim, struct emp_qelem *list,
{
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;