]> granicus.if.org Git - nethack/commit
Put monsters into limbo if they cannot be placed
authorPasi Kallinen <paxed@alt.org>
Sun, 11 Oct 2015 15:52:24 +0000 (18:52 +0300)
committerPasi Kallinen <paxed@alt.org>
Sun, 11 Oct 2015 15:52:27 +0000 (18:52 +0300)
commit16018ac824db17481f2e741294f2a370ffae38ec
tree51391057b15d08b952c2097f3378ec2651d8cd02
parent185515e1c719c040f0fc3860859053d7dc6c092a
Put monsters into limbo if they cannot be placed

Whenever mnearto tries to displace a monster from underneath
another, and the displaced one cannot be placed anywhere,
make it drop special objects and put it into migration, with
the current level as the target.

This should be a good enough stopgap measure - it's not going
to happen unless the level is (nearly) full of monsters.

And it seems to cure a near-impossible-to-track data corruption,
with monster list pointing to garbage.
src/mon.c