From: nethack.rankin Date: Tue, 10 Apr 2007 02:27:22 +0000 (+0000) Subject: genocide bit (trunk only) X-Git-Tag: MOVE2GIT~638 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8913c236672f12ff2049eec86c2f9d55fef4954;p=nethack genocide bit (trunk only) Simplify a recent change. --- diff --git a/src/read.c b/src/read.c index fcf5c3b91..ef85e13c6 100644 --- a/src/read.c +++ b/src/read.c @@ -1605,10 +1605,9 @@ do_class_genocide() getlin("What class of monsters do you wish to genocide?", buf); (void)mungspaces(buf); - if (*buf == '\033') Strcpy(buf, "none"); /* hangup? */ } while (!*buf); /* choosing "none" preserves genocideless conduct */ - if (!strcmpi(buf, "none") || + if (*buf == '\033' || !strcmpi(buf, "none") || !strcmpi(buf, "nothing")) return; class = name_to_monclass(buf, (int *)0);