From a8913c236672f12ff2049eec86c2f9d55fef4954 Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Tue, 10 Apr 2007 02:27:22 +0000 Subject: [PATCH] genocide bit (trunk only) Simplify a recent change. --- src/read.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);