Simplify pin_bomb() aborting at "Bomb what" prompt

This commit is contained in:
Markus Armbruster 2008-07-15 08:03:41 -04:00
parent 9eda5f87b8
commit 2fa522588a

View file

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