]> git.pond.sub.org Git - empserver/commitdiff
Revert "(prmptrd, uprmptrd): Should not be called while player->aborted. Check."
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 28 Apr 2008 20:22:18 +0000 (22:22 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 28 Apr 2008 20:22:18 +0000 (22:22 +0200)
This reverts commit fee8ac9d8f519649ad72129cae9ffb3bbd5d7ffb.

These *are* called while player->aborted.  Could be avoided, but: the
reason for not wanting to prompt then is to have each prompt consume a
line of input.  That's actually not feasible, because when we wait for
an argument (after prompting for it) when the update aborts commands,
we can't consume the argument we prompted for.

src/lib/subs/pr.c

index 6f2be24a22764788b8d0670aa9b6b3bc92588186..711dd3f4a3c00e68e0adc7d9c30d089e01b218c5 100644 (file)
@@ -368,12 +368,6 @@ prmptrd(char *prompt, char *buf, int size)
 {
     int r;
 
-    /*
-     * Each prompt must consume one line of input.  recvclient()
-     * doesn't do that while player->aborted.
-     */
-    CANT_HAPPEN(player->aborted);
-
     if (CANT_HAPPEN(!prompt))
        prompt = "? ";
 
@@ -403,9 +397,6 @@ uprmptrd(char *prompt, char *buf, int size)
 {
     int r;
 
-    /* See prmptrd() */
-    CANT_HAPPEN(player->aborted);
-
     if (CANT_HAPPEN(!prompt))
        prompt = "? ";