]> granicus.if.org Git - nethack/commit
chameleon/genocide fix (trunk only)
authornethack.rankin <nethack.rankin>
Sat, 25 Mar 2006 04:43:07 +0000 (04:43 +0000)
committernethack.rankin <nethack.rankin>
Sat, 25 Mar 2006 04:43:07 +0000 (04:43 +0000)
commit8370782a1305125b10ee6d55a1fb6bf1e4e330dd
treee30006287614f626f38c7217b5a7d3153bbae87e
parent6ef8efcefb98ba725bb6927f88581bcc6fdc1201
chameleon/genocide fix (trunk only)

     While testing some pending teleport changes, I was baffled by having
my adjacent pet sometimes vanish when accompanying me on a level teleport.
Tracing through parts of execution:  keepdogs() kept it; losedogs() called
mon_arrive() which called place_monster() for it, but then right after that
kill_genocided_monsters() removed it.  Turns out that `kill_cham' was left
uninitialized for the first iteration through the fmon loop (and pet had
always just been inserted as first entry of the fmon list).

     No fixes entry; this revises a post-3.4.3 revision.
src/mon.c