steeds don't remember traps

<Someone> reported to the list that steeds didn't remember traps
encountered while mounted.  When not mounted, a monster will remember
traps, even when they don't damage the monster.  To that end, added code to
set the steed's mtrapseen mask.
This commit is contained in:
cohrs
2003-02-13 05:23:46 +00:00
parent 6cf5c60dcc
commit 6885f18bb1
2 changed files with 5 additions and 0 deletions

View File

@@ -382,6 +382,7 @@ fix sequencing of Magicbane's hit messages
avoid buffer overflow from long or too many -s params
wake up first if trying to crawl out of water while asleep
while waiting, don't try to change into were form when already in were form
steed should remember traps encountered while mounted
Platform- and/or Interface-Specific Fixes

View File

@@ -552,6 +552,10 @@ unsigned trflags;
}
}
#ifdef STEED
if (u.usteed) u.usteed->mtrapseen |= (1 << (ttype-1));
#endif
switch(ttype) {
case ARROW_TRAP:
seetrap(trap);