diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-06-10 17:34:23 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-06-11 06:51:29 +0200 |
commit | 894d0831b5dd118b0072d9e651f4e51d41819c17 (patch) | |
tree | eaf07a0bca0d2a9ecf86cf41190899d5a9942f1e | |
parent | e835c76ded369038eaa00ecba0aa7754b37994e5 (diff) |
Remove dead code in player_activate_trap_type()
-rw-r--r-- | src/traps.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/traps.cc b/src/traps.cc index ef01aece..49d07cbf 100644 --- a/src/traps.cc +++ b/src/traps.cc @@ -487,11 +487,6 @@ bool_ player_activate_trap_type(s16b y, s16b x, object_type *i_ptr, s16b item) trap = i_ptr->pval; } - if ((i_ptr == NULL) && (cave[y][x].o_idx != 0)) - { - i_ptr = &o_list[cave[y][x].o_idx]; - } - switch (trap) { /* stat traps */ |