fix #H148 - applying a pickaxe doesn't respect pushweapon

From a bug report, applying a pick-axe will
wield it in place of the primary weapon but wouldn't update the alternate
weapon.  Make objects which become wielded when applied (pick, lamp, whip,
grappling hook, pole-arm) honor the pushweapon option (where the previously
wielded weapon becomes the alternate weapon without use of 'x' command) the
same as when explicitly wielded.  Old behavior matched the documentation,
but that seemed overly restrictive.
This commit is contained in:
nethack.rankin
2006-07-15 03:25:08 +00:00
parent 96c6163019
commit 9631e2b691
4 changed files with 12 additions and 2 deletions
+1
View File
@@ -241,6 +241,7 @@ remove makedefs.c dependency that time_t and long are the same size
terminal window set to 21 lines can cause a crash during player selection
menus; have bot() check for valid youmonst.data
free storage used to hold region messages in free_region()
honor pushweapon when applying a tool or weapon causes it to become wielded
Platform- and/or Interface-Specific Fixes