From 0a61f8eb785f008c20c1d63404c1d9d01abd6fde Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 10 May 2008 18:52:29 +0200 Subject: [PATCH] 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. --- src/lib/commands/assa.c | 2 +- src/lib/commands/coll.c | 2 +- src/lib/commands/foll.c | 2 +- src/lib/commands/mine.c | 4 ++-- src/lib/commands/mobq.c | 2 +- src/lib/commands/show.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/commands/assa.c b/src/lib/commands/assa.c index 6af33d36..d1f64aa8 100644 --- a/src/lib/commands/assa.c +++ b/src/lib/commands/assa.c @@ -82,7 +82,7 @@ assa(void) */ 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"); return RET_FAIL; } diff --git a/src/lib/commands/coll.c b/src/lib/commands/coll.c index e1b27041..e2d648cb 100644 --- a/src/lib/commands/coll.c +++ b/src/lib/commands/coll.c @@ -60,7 +60,7 @@ coll(void) pr("Loans are not enabled.\n"); 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; /* 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. */ diff --git a/src/lib/commands/foll.c b/src/lib/commands/foll.c index a488d5a2..bc09f9e4 100644 --- a/src/lib/commands/foll.c +++ b/src/lib/commands/foll.c @@ -53,7 +53,7 @@ foll(void) } if (!snxtitem(&nstr, EF_SHIP, player->argp[1])) return RET_SYN; - cp = getstarg(player->argp[2], "leader?", buf); + cp = getstarg(player->argp[2], "leader? ", buf); if (cp == 0) cp = ""; good = sscanf(cp, "%d", &leader); diff --git a/src/lib/commands/mine.c b/src/lib/commands/mine.c index 05867a5c..4ff3d1b7 100644 --- a/src/lib/commands/mine.c +++ b/src/lib/commands/mine.c @@ -55,7 +55,7 @@ mine(void) if (!snxtitem(&ni, EF_SHIP, player->argp[1])) return RET_SYN; mines = onearg(player->argp[2], - "Drop how many mines from each ship? "); + "Drop how many mines from each ship? "); if (mines <= 0) return RET_SYN; while (nxtitem(&ni, &ship)) { @@ -126,7 +126,7 @@ landmine(void) if (sect.sct_own == sect.sct_oldown) pr("There are currently %d mines in %s\n", 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); if (!check_land_ok(&land)) continue; diff --git a/src/lib/commands/mobq.c b/src/lib/commands/mobq.c index 93da135d..fcd8cf5f 100644 --- a/src/lib/commands/mobq.c +++ b/src/lib/commands/mobq.c @@ -74,7 +74,7 @@ mobq(void) pr("Ship #%d at %s. Old value %d.\n", ship.shp_uid, xyas(ship.shp_x, ship.shp_y, player->cnum), ship.shp_mobquota); - cp = getstarg(player->argp[2], "mobility quota?", buf); + cp = getstarg(player->argp[2], "mobility quota? ", buf); if (!cp) return RET_SYN; if (!check_ship_ok(&ship)) diff --git a/src/lib/commands/show.c b/src/lib/commands/show.c index 16f7fd7c..85b7a4f7 100644 --- a/src/lib/commands/show.c +++ b/src/lib/commands/show.c @@ -51,7 +51,7 @@ show(void) int rlev; 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)) || !*p) return RET_SYN;