Fix some argument prompts to end in one space

Corrects first argument of collect and show, and second argument of
assault, follow, mine, lmine and mobquota.
This commit is contained in:
Markus Armbruster 2008-05-10 18:52:29 +02:00
parent a1f4dc9592
commit 0a61f8eb78
6 changed files with 7 additions and 7 deletions

View file

@ -82,7 +82,7 @@ assa(void)
*/ */
if ((off->shp_uid = if ((off->shp_uid =
onearg(player->argp[2], "Assault from ship #")) < 0) { onearg(player->argp[2], "Assault from ship # ")) < 0) {
pr("You may only assault from one ship!\n"); pr("You may only assault from one ship!\n");
return RET_FAIL; return RET_FAIL;
} }

View file

@ -60,7 +60,7 @@ coll(void)
pr("Loans are not enabled.\n"); pr("Loans are not enabled.\n");
return RET_FAIL; return RET_FAIL;
} }
if ((arg = onearg(player->argp[1], "Collect on loan #")) < 0) if ((arg = onearg(player->argp[1], "Collect on loan # ")) < 0)
return RET_SYN; return RET_SYN;
/* Check if it's a valid loan. That means, is it a valid loan, /* Check if it's a valid loan. That means, is it a valid loan,
owed to this player, with a valid duration and it's been signed. */ owed to this player, with a valid duration and it's been signed. */

View file

@ -53,7 +53,7 @@ foll(void)
} }
if (!snxtitem(&nstr, EF_SHIP, player->argp[1])) if (!snxtitem(&nstr, EF_SHIP, player->argp[1]))
return RET_SYN; return RET_SYN;
cp = getstarg(player->argp[2], "leader?", buf); cp = getstarg(player->argp[2], "leader? ", buf);
if (cp == 0) if (cp == 0)
cp = ""; cp = "";
good = sscanf(cp, "%d", &leader); good = sscanf(cp, "%d", &leader);

View file

@ -55,7 +55,7 @@ mine(void)
if (!snxtitem(&ni, EF_SHIP, player->argp[1])) if (!snxtitem(&ni, EF_SHIP, player->argp[1]))
return RET_SYN; return RET_SYN;
mines = onearg(player->argp[2], mines = onearg(player->argp[2],
"Drop how many mines from each ship? "); "Drop how many mines from each ship? ");
if (mines <= 0) if (mines <= 0)
return RET_SYN; return RET_SYN;
while (nxtitem(&ni, &ship)) { while (nxtitem(&ni, &ship)) {
@ -126,7 +126,7 @@ landmine(void)
if (sect.sct_own == sect.sct_oldown) if (sect.sct_own == sect.sct_oldown)
pr("There are currently %d mines in %s\n", pr("There are currently %d mines in %s\n",
sect.sct_mines, xyas(sect.sct_x, sect.sct_y, player->cnum)); sect.sct_mines, xyas(sect.sct_x, sect.sct_y, player->cnum));
sprintf(prompt, "Drop how many mines from %s? ", prland(&land)); sprintf(prompt, "Drop how many mines from %s? ", prland(&land));
mines_wanted = onearg(player->argp[2], prompt); mines_wanted = onearg(player->argp[2], prompt);
if (!check_land_ok(&land)) if (!check_land_ok(&land))
continue; continue;

View file

@ -74,7 +74,7 @@ mobq(void)
pr("Ship #%d at %s. Old value %d.\n", ship.shp_uid, pr("Ship #%d at %s. Old value %d.\n", ship.shp_uid,
xyas(ship.shp_x, ship.shp_y, player->cnum), xyas(ship.shp_x, ship.shp_y, player->cnum),
ship.shp_mobquota); ship.shp_mobquota);
cp = getstarg(player->argp[2], "mobility quota?", buf); cp = getstarg(player->argp[2], "mobility quota? ", buf);
if (!cp) if (!cp)
return RET_SYN; return RET_SYN;
if (!check_ship_ok(&ship)) if (!check_ship_ok(&ship))

View file

@ -51,7 +51,7 @@ show(void)
int rlev; int rlev;
if (!(p = getstarg(player->argp[1], if (!(p = getstarg(player->argp[1],
"Show what (bridge, item, land, nuke, plane, sect, ship, tower, updates)?", "Show what (bridge, item, land, nuke, plane, sect, ship, tower, updates)? ",
buf)) buf))
|| !*p) || !*p)
return RET_SYN; return RET_SYN;