fix m-prefix movement into warning symbol (pr573)

https://github.com/NetHack/NetHack/pull/573 by entrez
Pull request comment states:
"Moving into a position containing a warning symbol with m-<direction> to
'safely' move would still attack as though the 'm' prefix was not
specified.  Ensure warning symbols are counted as 'detected' monsters
for this purpose, to avoid falling through to do_attack()."

Closes #573
This commit is contained in:
Michael Meyer
2021-10-16 10:50:54 -04:00
committed by nhmall
parent b1b06f8734
commit 121290cde6
2 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -1298,7 +1298,8 @@ delete extra lines in Guidebook.mn (pr #590 by argrath)
supply missing changes on Guidebook.tex (pr #591 by argrath)
fix out-of-bounds access of xdir and ydir in farlook (pr #592 by copperwater)
variation of imp's period-speak (pr #602 by Vivit-R)
fix m-prefix movement into warning symbol (pr #573 by entrez)
Code Cleanup and Reorganization
-------------------------------