summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/zotdef.cc
diff options
context:
space:
mode:
authorgammafunk <gammafunk@gmail.com>2014-06-29 02:55:00 -0500
committergammafunk <gammafunk@gmail.com>2014-06-29 18:18:03 -0500
commit2dcbfe939151426d28576f62d505b5351fc0a5cc (patch)
tree3965500a885cb2a7202336b00985187461c91be9 /crawl-ref/source/zotdef.cc
parent687e18844208294d4576c7f7a3d428a780cdfd0b (diff)
downloadcrawl-ref-2dcbfe939151426d28576f62d505b5351fc0a5cc.tar.gz
crawl-ref-2dcbfe939151426d28576f62d505b5351fc0a5cc.zip
Remove an unused argument from the items() function
Diffstat (limited to 'crawl-ref/source/zotdef.cc')
-rw-r--r--crawl-ref/source/zotdef.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/zotdef.cc b/crawl-ref/source/zotdef.cc
index afa63111c6..80f3f79498 100644
--- a/crawl-ref/source/zotdef.cc
+++ b/crawl-ref/source/zotdef.cc
@@ -1024,13 +1024,11 @@ void zotdef_bosses_check()
const char *msg = "You sense that a powerful threat has arrived.";
if (!(((you.num_turns + 1) / ZOTDEF_CYCLE_LENGTH) % ZOTDEF_RUNE_FREQ))
{
- const rune_type which_rune = _get_rune();
- int ip = items(1, OBJ_MISCELLANY, MISC_RUNE_OF_ZOT, true,
- which_rune, which_rune);
+ int ip = items(1, OBJ_MISCELLANY, MISC_RUNE_OF_ZOT, true, 0);
int *const item_made = &ip;
if (*item_made != NON_ITEM && *item_made != -1)
{
- mitm[ip].plus = which_rune;
+ mitm[ip].plus = _get_rune();
move_item_to_grid(item_made, mon->pos());
msg = "You feel a sense of great excitement!";
}