genocide bit (trunk only)
Simplify a recent change.
This commit is contained in:
+1
-2
@@ -1605,10 +1605,9 @@ do_class_genocide()
|
|||||||
getlin("What class of monsters do you wish to genocide?",
|
getlin("What class of monsters do you wish to genocide?",
|
||||||
buf);
|
buf);
|
||||||
(void)mungspaces(buf);
|
(void)mungspaces(buf);
|
||||||
if (*buf == '\033') Strcpy(buf, "none"); /* hangup? */
|
|
||||||
} while (!*buf);
|
} while (!*buf);
|
||||||
/* choosing "none" preserves genocideless conduct */
|
/* choosing "none" preserves genocideless conduct */
|
||||||
if (!strcmpi(buf, "none") ||
|
if (*buf == '\033' || !strcmpi(buf, "none") ||
|
||||||
!strcmpi(buf, "nothing")) return;
|
!strcmpi(buf, "nothing")) return;
|
||||||
|
|
||||||
class = name_to_monclass(buf, (int *)0);
|
class = name_to_monclass(buf, (int *)0);
|
||||||
|
|||||||
Reference in New Issue
Block a user