fix broken migrating monster arrival
If the first monster on the migrating_mons list couldn't arrive and was put back on the list to try again later, 'later' would happen immediately and the program looped forever trying and failing to bring that monster to the level. Defer repeat attempts at migration until losedogs() has been through the whole migrating_mons list. mon_arrive() now populates a new list called failed_arrivals and losedog() moves its contents, if any, to migrating_mons prior to returning.
This commit is contained in:
@@ -979,6 +979,8 @@ scared hostile monster which cannot move away will attack
|
||||
prevent a fog cloud that has engulfed the hero from moving under closed doors
|
||||
allow cutting a known spider web with wielded weapon by force-fighting the web
|
||||
holes and trapdoors have a fixed exit level
|
||||
recent changes to losedogs() could result in an infinite loop when migrating
|
||||
monsters try to arrive as hero moves to a different level
|
||||
|
||||
|
||||
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
||||
|
||||
Reference in New Issue
Block a user