curing green slime bit

A recent change to make_slimed() overlooked a different recent change
in how mon->m_ap_type and youmonst.m_ap_type are referenced.  In this
case it had no impact; fix on general principles.
This commit is contained in:
PatR
2019-06-18 02:39:45 -07:00
parent 273662c58c
commit 7e1f020846

View File

@@ -1,4 +1,4 @@
/* NetHack 3.6 potion.c $NHDT-Date: 1559664951 2019/06/04 16:15:51 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.161 $ */
/* NetHack 3.6 potion.c $NHDT-Date: 1560850774 2019/06/18 09:39:34 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.162 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2013. */
/* NetHack may be freely redistributed. See license for details. */
@@ -188,7 +188,7 @@ const char *msg;
if (!Slimed) {
dealloc_killer(find_delayed_killer(SLIMED));
/* fake appearance is set late in turn-to-slime countdown */
if (youmonst.m_ap_type == M_AP_MONSTER
if (U_AP_TYPE == M_AP_MONSTER
&& youmonst.mappearance == PM_GREEN_SLIME) {
youmonst.m_ap_type = M_AP_NOTHING;
youmonst.mappearance = 0;