diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-03-04 14:48:15 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-03-29 20:41:39 +0200 |
commit | 120fed37d8974553e25e5c83ba74c1bb08d71404 (patch) | |
tree | 3153c48c7a0e8283ce108577bd6160add7b437e6 /src/melee1.c | |
parent | a27236516b0aa8761f70f009c78f4272dc0b735d (diff) |
Refactor: Remove duplicate code for reducing item stacks
Diffstat (limited to 'src/melee1.c')
-rw-r--r-- | src/melee1.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/melee1.c b/src/melee1.c index 1a3fa526..4e5d3208 100644 --- a/src/melee1.c +++ b/src/melee1.c @@ -2174,8 +2174,7 @@ bool_ make_attack_normal(int m_idx, byte divis) } /* Steal the items */ - inven_item_increase(i, -1); - inven_item_optimize(i); + inc_stack_size_ex(i, -1, OPTIMIZE, NO_DESCRIBE); /* Obvious */ obvious = TRUE; @@ -2219,8 +2218,7 @@ bool_ make_attack_normal(int m_idx, byte divis) o_name, index_to_label(i)); /* Steal the items */ - inven_item_increase(i, -1); - inven_item_optimize(i); + inc_stack_size_ex(i, -1, OPTIMIZE, NO_DESCRIBE); /* Obvious */ obvious = TRUE; |