Fix C343-108 (e- leaves prompt on screen)

You'll get "You mime eating something."
This commit is contained in:
Pasi Kallinen
2015-03-20 19:25:19 +02:00
parent f2dc48086f
commit 2ec4ff0b8c
3 changed files with 43 additions and 1 deletions

View File

@@ -972,7 +972,15 @@ register const char *let,*word;
return((struct obj *)0);
}
if(ilet == '-') {
return(allownone ? &zeroobj : (struct obj *) 0);
if (!allownone) {
strcpy(buf, word);
if ((bp = strstr(buf, " or ")) != NULL) {
*bp = '\0';
bp = (rn2(2) ? buf : (bp + 4));
} else bp = buf;
You("mime %s something.", ing_suffix(bp));
}
return(allownone ? &zeroobj : (struct obj *) 0);
}
if(ilet == def_oc_syms[COIN_CLASS].sym) {
if (!usegold) {