fix #H177 - mimicking gold while hallucinating (trunk only)
From a bug report, having hallucination time out while mimicking an orange (instead of gold, after eating a mimic corpse), you'd still get the hallucinatory end-of-mimicking message about not wanting to be peeled. If hallucination state is toggled, update the pending message and change the hero's appearance. In practice, only the orange-to-gold case can occur. Anything which might trigger gold-to-orange will have terminated the hero's mimickery befort that happens.
This commit is contained in:
+5
-1
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)potion.c 3.5 2006/06/21 */
|
||||
/* SCCS Id: @(#)potion.c 3.5 2006/08/18 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -315,6 +315,10 @@ long mask; /* nonzero if resistance status should change by mask */
|
||||
}
|
||||
|
||||
if (changed) {
|
||||
/* in case we're mimicking an orange (hallucinatory form
|
||||
of mimicking gold) update the mimicking's-over message */
|
||||
if (!Hallucination) eatmupdate();
|
||||
|
||||
if (u.uswallow) {
|
||||
swallowed(0); /* redraw swallow display */
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user