]> git.pond.sub.org Git - empserver/commitdiff
Fix some argument prompts to end in one space
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 10 May 2008 16:52:29 +0000 (18:52 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 10 May 2008 16:52:29 +0000 (18:52 +0200)
Corrects first argument of collect and show, and second argument of
assault, follow, mine, lmine and mobquota.

src/lib/commands/assa.c
src/lib/commands/coll.c
src/lib/commands/foll.c
src/lib/commands/mine.c
src/lib/commands/mobq.c
src/lib/commands/show.c

index 6af33d361898ab8fe12b696bce777d74defe77b8..d1f64aa890a79136f888c61c70ef9da477054cd8 100644 (file)
@@ -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;
     }
index e1b270415acdebee02cf342c95280b92857ae596..e2d648cbb0f24b6e37eefe1b891085599ae7bd77 100644 (file)
@@ -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. */
index a488d5a2a2e8c215e740bc4a6825f030ba3a1020..bc09f9e4b95e40a143d7b48ca808ce6ef6c9fcff 100644 (file)
@@ -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);
index 05867a5c1f97d58c294dc188d86e61c9622b2490..4ff3d1b73a8f6d04944e1798872d658d77a38812 100644 (file)
@@ -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;
index 93da135d78e11995933d36775ffb57e5ec84174b..fcd8cf5f38582f57c4a6974a114e647897e7981a 100644 (file)
@@ -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))
index 16f7fd7c80a7a666f777101487592ff57128e5ba..85b7a4f782b76f4ff021f94ff265a88a6f826ed1 100644 (file)
@@ -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;