fix #H1755 - feedback for clerical summoning when blind (trunk only)

From a bug report, the feedback
you get when a monster summons insects or snakes is the same when blind
as when you can see.  A comment in the code stated as much, but fixing
it is relatively straightforward.  (Or not; there are actually a lot of
cases to be handled; this covers enough of them, I hope.)
This commit is contained in:
nethack.rankin
2008-11-15 20:38:02 +00:00
parent 655a340f69
commit 4b1116f4d0
5 changed files with 53 additions and 30 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)wizard.c 3.5 2007/08/26 */
/* SCCS Id: @(#)wizard.c 3.5 2008/11/14 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -431,7 +431,7 @@ nasty(mcast)
/* some candidates may be created in groups, so simple count
of non-null makemon() return is inadequate */
census = monster_census();
census = monster_census(FALSE);
if(!rn2(10) && Inhell) {
count = msummon((struct monst *) 0); /* summons like WoY */
@@ -472,7 +472,7 @@ nasty(mcast)
}
}
if (count) count = monster_census() - census;
if (count) count = monster_census(FALSE) - census;
return count;
}