fix github issue #564 - unicorn vs displaced hero

Unicorns attempted to avoid being in direct line with the hero's
actual location even when displacement causes unicorn to think hero
was at some other spot.  Change to avoid lining up with presumed
location even if that leaves the monster lined up with the hero.

While in mon.c, reorder the static function declarations near the
beginning of the file to match their order within it.

Fixes #564
This commit is contained in:
PatR
2021-08-06 17:59:53 -07:00
parent 828cbcf4ab
commit 62e09ae9f3
2 changed files with 26 additions and 15 deletions

View File

@@ -775,6 +775,8 @@ using bhitpos in flooreffects to handle erosion damage broke its original use
restore previous behavior of the 'altmeta' option (only wait for a second
character when getting a command keystroke, not other key input)
baby gold dragons weren't able to grow into adult gold dragons
when hero is displaced, make monsters who try to stay out of direct line do so
with spot where they think the hero is rather than where he really is
curses: 'msg_window' option wasn't functional for curses unless the binary
also included tty support