]> granicus.if.org Git - nethack/commit
fix shop ownership of saddle dropped by dead pet (trunk only)
authornethack.rankin <nethack.rankin>
Sat, 9 Jul 2011 02:56:38 +0000 (02:56 +0000)
committernethack.rankin <nethack.rankin>
Sat, 9 Jul 2011 02:56:38 +0000 (02:56 +0000)
commit6a53009069dd2b474a288c9b2cc1ca8b364ceb13
tree582cb82ef3fe2c1311984712488e4f120b3daa00
parentae1d8af5f3e08777cd2d50e41d7aa338578a8971
fix shop ownership of saddle dropped by dead pet (trunk only)

     From a bug report, you could obtain
a saddle for free if it was dropped (while worn) by a dying pet inside a
shop.  That's intentional, but it was happening even when the hero was
not in the shop, which doesn't seem right.  Change things to only set it
no_charge if hero is within the same shop (including standing in the
doorway or a temporary wall breach, not just when all the way inside) at
the time of the drop.
doc/fixes35.0
src/steal.c