summaryrefslogtreecommitdiff
path: root/src/traps.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-09-14 17:30:27 +0200
committerBardur Arantsson <bardur@scientician.net>2015-09-14 17:30:27 +0200
commit87544c0599ec69df0af560dbfe7f58482d2a0bf5 (patch)
tree501ace7c8a913a23e74debda1c6026bad20d6364 /src/traps.cc
parentb7ceceb10db03a8d59de5de39a7cd6465409c35c (diff)
Replace hack_apply_magic_power with optional parameter
Diffstat (limited to 'src/traps.cc')
-rw-r--r--src/traps.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/traps.cc b/src/traps.cc
index b336a770..bc4ef99f 100644
--- a/src/traps.cc
+++ b/src/traps.cc
@@ -1382,8 +1382,7 @@ bool_ player_activate_trap_type(s16b y, s16b x, object_type *i_ptr, s16b item)
/* Create a Wand of Nothing */
object_prep(j_ptr, lookup_kind(TV_WAND, SV_WAND_NOTHING));
- hack_apply_magic_power = -99;
- apply_magic(j_ptr, 0, FALSE, FALSE, FALSE);
+ apply_magic(j_ptr, 0, FALSE, FALSE, FALSE, boost::make_optional(0));
j_ptr->ident &= ~IDENT_KNOWN;
p_ptr->notice |= (PN_COMBINE | PN_REORDER);
}
@@ -1393,8 +1392,7 @@ bool_ player_activate_trap_type(s16b y, s16b x, object_type *i_ptr, s16b item)
/* Create a Staff of Nothing */
object_prep(j_ptr, lookup_kind(TV_STAFF, SV_STAFF_NOTHING));
- hack_apply_magic_power = -99;
- apply_magic(j_ptr, 0, FALSE, FALSE, FALSE);
+ apply_magic(j_ptr, 0, FALSE, FALSE, FALSE, boost::make_optional(0));
j_ptr->ident &= ~IDENT_KNOWN;
p_ptr->notice |= (PN_COMBINE | PN_REORDER);
}