more munstone fixes

Move part of the recent "munstone fixes" patch to the branch code
since one of those fixes prevents accessing freed memory.  The part that
lets monsters eat tins of lizard meat or tins of acidic monsters in order
to get the same benefit as the corresponding corpse has been left out.
This commit is contained in:
nethack.rankin
2006-04-18 03:41:05 +00:00
parent 857a46c295
commit fc9c337e27
3 changed files with 7 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)muse.c 3.5 2006/04/11 */
/* SCCS Id: @(#)muse.c 3.5 2006/04/17 */
/* Copyright (C) 1990 by Ken Arromdee */
/* NetHack may be freely redistributed. See license for details. */
@@ -2168,9 +2168,10 @@ boolean stoning;
distant_name(obj, doname));
obj->quan = save_quan;
} else if (!Deaf)
You_hear("%s.", (obj->otyp == POT_ACID) ? "drinking" : "chewing");
You_hear("%s.", (obj->oclass == POTION_CLASS) ? "drinking" : "chewing");
m_useup(mon, obj);
/* obj is now gone */
if (acid && !tinned && !resists_acid(mon)) {
mon->mhp -= rnd(15);