untrap downwards while over trap

Force trap to activate during failed untrap attempt if done while
already at the trap's location, to match the recent change in
behavior when failed attempt occurs while adjacent to the trap.

Most noticeable while flying over bear traps, but affects all
failed untrap attempts.
This commit is contained in:
PatR
2018-09-30 16:37:32 -07:00
parent d9ecc42566
commit 053880c149
3 changed files with 7 additions and 4 deletions

View File

@@ -333,6 +333,7 @@ typedef struct sortloot_item Loot;
#define RECURSIVETRAP 0x08 /* trap changed into another type this same turn */
#define TOOKPLUNGE 0x10 /* used '>' to enter pit below you */
#define VIASITTING 0x20 /* #sit while at trap location (affects message) */
#define FAILEDUNTRAP 0x40 /* trap activated by failed untrap attempt */
/* Flags to control test_move in hack.c */
#define DO_MOVE 0 /* really doing the move */