if (odummy->otyp == SLIME_MOLD
400 -> && has_mcorpsenm(mtmp) && MCORPSENM(mtmp) != NON_PM)
The definition of has_mcorpsenm macro is:
include/mextra.h:#define has_mcorpsenm(mon) ((mon)->mextra && MCORPSENM(mon) != NON_PM)
Remove the redundant code.
/* simple_typename() yields "fruit" for any named fruit;
we want the same thing '//' or ';' shows: "slime mold"
or "grape" or "slice of pizza" */
- if (odummy->otyp == SLIME_MOLD
- && has_mcorpsenm(mtmp) && MCORPSENM(mtmp) != NON_PM) {
+ if (odummy->otyp == SLIME_MOLD && has_mcorpsenm(mtmp)) {
odummy->spe = MCORPSENM(mtmp);
what = simpleonames(odummy);
} else {