Indented with src/scripts/indent-emp.
This commit is contained in:
parent
5f263a7753
commit
9b7adfbecc
437 changed files with 52211 additions and 51052 deletions
|
@ -46,32 +46,32 @@ int
|
|||
wing(void)
|
||||
{
|
||||
|
||||
struct plnstr plane;
|
||||
register int count;
|
||||
s_char *cp;
|
||||
s_char c;
|
||||
struct nstr_item nstr;
|
||||
s_char buf[1024];
|
||||
struct plnstr plane;
|
||||
register int count;
|
||||
s_char *cp;
|
||||
s_char c;
|
||||
struct nstr_item nstr;
|
||||
s_char buf[1024];
|
||||
|
||||
if (!(cp = getstarg(player->argp[1], "wing? ", buf)))
|
||||
return RET_SYN;
|
||||
c = *cp;
|
||||
if (!isalpha(c) && c != '~') {
|
||||
pr("Specify wing, (1 alpha char or '~')\n");
|
||||
return RET_SYN;
|
||||
if (!(cp = getstarg(player->argp[1], "wing? ", buf)))
|
||||
return RET_SYN;
|
||||
c = *cp;
|
||||
if (!isalpha(c) && c != '~') {
|
||||
pr("Specify wing, (1 alpha char or '~')\n");
|
||||
return RET_SYN;
|
||||
}
|
||||
if (c == '~')
|
||||
c = ' ';
|
||||
if (!snxtitem(&nstr, EF_PLANE, player->argp[2]))
|
||||
return RET_SYN;
|
||||
for (count = 0; nxtitem(&nstr, (s_char *)&plane); count++) {
|
||||
if (plane.pln_own != player->cnum) {
|
||||
count--;
|
||||
continue;
|
||||
}
|
||||
if (c == '~')
|
||||
c = ' ';
|
||||
if (!snxtitem(&nstr, EF_PLANE, player->argp[2]))
|
||||
return RET_SYN;
|
||||
for (count = 0; nxtitem(&nstr, (s_char *)&plane); count++) {
|
||||
if (plane.pln_own != player->cnum) {
|
||||
count--;
|
||||
continue;
|
||||
}
|
||||
plane.pln_wing = c;
|
||||
putplane(plane.pln_uid, &plane);
|
||||
}
|
||||
pr("%d plane%s added to wing `%c'\n", count, splur(count), c);
|
||||
return RET_OK;
|
||||
plane.pln_wing = c;
|
||||
putplane(plane.pln_uid, &plane);
|
||||
}
|
||||
pr("%d plane%s added to wing `%c'\n", count, splur(count), c);
|
||||
return RET_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue