leashed steed dying of starvation

- prefer the regular "dies from hunger" message over "leash goes slack"
in this case.
This commit is contained in:
cohrs
2002-03-25 06:29:43 +00:00
parent 1b705ec5e2
commit d0d0cde8e7
2 changed files with 6 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ left word in format string in get_wet() causing "The spellbook fadefades"
two bad wizkit items in a row shouldn't make the user hit space many times
kicking thrones no longer loosens rocks
wall symbol not replaced when digging while blind and levitating
print regular death message when leashed, mounted steed dies of starvation
Platform- and/or Interface-Specific Fixes

View File

@@ -248,7 +248,11 @@ register struct edog *edog;
stop_occupation();
} else if (monstermoves > edog->hungrytime + 750 || mtmp->mhp < 1) {
dog_died:
if (mtmp->mleashed)
if (mtmp->mleashed
#ifdef STEED
&& mtmp != u.usteed
#endif
)
Your("leash goes slack.");
else if (cansee(mtmp->mx, mtmp->my))
pline("%s dies%s.", Monnam(mtmp),