]> git.pond.sub.org Git - empserver/commitdiff
Simplify pin_bomb() aborting at "Bomb what" prompt
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 15 Jul 2008 12:03:41 +0000 (08:03 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 21 Jul 2008 11:25:16 +0000 (07:25 -0400)
src/lib/commands/bomb.c

index 975ca76873b79104f7d13cb9860840dc80739df4..07f2bad44310e81eb45a8609bab259ae8034a3b3 100644 (file)
@@ -221,9 +221,9 @@ pin_bomb(struct emp_qelem *list, struct sctstr *target)
   retry:
     p = getstring("Bomb what? (ship, plane, land unit, efficiency, commodities) ",
                  buf);
-    if (p == 0 || *p == 0) {
-       if (player->aborted)
-           return;
+    if (!p)
+       return;
+    if (!*p) {
        bad++;
        if (bad > 2)
            return;