]> granicus.if.org Git - nethack/commit
magic cancellation/Protection revamp (trunk only)
authornethack.rankin <nethack.rankin>
Sat, 9 Apr 2011 00:05:06 +0000 (00:05 +0000)
committernethack.rankin <nethack.rankin>
Sat, 9 Apr 2011 00:05:06 +0000 (00:05 +0000)
commit6df18e20bea808d30818a6a158bc14351e7b8bfb
tree4813848e4adc4f5a3749304998a0b270c27c8837
parentaa382329dd9ac7ef0c690a8e381fd77d462ab924
magic cancellation/Protection revamp (trunk only)

     Optimize yesterday's new code.  When calculating magic cancellation,
avoid calling protects() for hero's inventory; the information it's
providing is already available via u.uprops[PROTECTION].  That part of
the inventory scan is only needed for monsters.
src/mhitu.c