genocide bit (trunk only)

Simplify a recent change.
This commit is contained in:
nethack.rankin
2007-04-10 02:27:22 +00:00
parent f9e544f985
commit a8913c2366

View File

@@ -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);