option parsing will crash if 'playmode' option is present without a value
any item drained of enchantment was blamed on the player as far as shop
billing was concerned, even if caused by disenchanter attack
+if user supplied a specific monster name when asked to choose a monster class,
+ first prefix match was picked rather than best match ("titan" yielded
+ S_quadruped due to being preceded by "titanothere" in mons[])
Fixes to Post-3.6.0 Problems that Were Exposed Via git Repository
-/* NetHack 3.6 mondata.c $NHDT-Date: 1446604115 2015/11/04 02:28:35 $ $NHDT-Branch: master $:$NHDT-Revision: 1.58 $ */
+/* NetHack 3.6 mondata.c $NHDT-Date: 1470966820 2016/08/12 01:53:40 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.61 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
if ((p = strstri(x, in_str)) != 0 && (p == x || *(p - 1) == ' '))
return i;
}
- /* check individual species names; not as thorough as mon_to_name()
- but our caller can call that directly if desired */
- for (i = LOW_PM; i < NUMMONS; i++) {
- x = mons[i].mname;
- if ((p = strstri(x, in_str)) != 0
- && (p == x || *(p - 1) == ' ')) {
- if (mndx_p)
- *mndx_p = i;
- return mons[i].mlet;
- }
+ /* check individual species names */
+ i = name_to_mon(in_str);
+ if (i != NON_PM) {
+ if (mndx_p)
+ *mndx_p = i;
+ return mons[i].mlet;
}
}
return 0;