]> granicus.if.org Git - nethack/commit
Fix the makemon random coord picking again
authorPasi Kallinen <paxed@alt.org>
Mon, 12 Oct 2015 09:00:47 +0000 (12:00 +0300)
committerPasi Kallinen <paxed@alt.org>
Mon, 12 Oct 2015 09:00:51 +0000 (12:00 +0300)
commit2f54ed8eaeca93618e469584b84aa003725eb068
tree484c46e50fd9f0cd7560e7b55afbe2e5d0213a02
parentb2aea3e9d733e28aaaf4a3db75fa05c9c04fc691
Fix the makemon random coord picking again

This time try random locations up to 50 times, then start going
through the map in order to find a good position. First round
tries to pick a location not in sight, if that fails, it might
try stair or ladder location. If that fails, then it will pick
any good position, whether in sight or not.

Outside field of vision restriction and trying stair or ladder
locations does not happen when the monster is placed from special
level code.
src/makemon.c