summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.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/abyss.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/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index d69fe44c00..679cdbc695 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -281,15 +281,14 @@ static bool _abyss_place_rune(const map_bitmask &abyss_genlevel_mask,
if (places_found)
{
dprf("Placing abyssal rune at (%d,%d)", chosen_spot.x, chosen_spot.y);
- int thing_created = items(1, OBJ_MISCELLANY,
- MISC_RUNE_OF_ZOT, true, 0, 0);
- if (thing_created != NON_ITEM)
+ int item_ind = items(1, OBJ_MISCELLANY, MISC_RUNE_OF_ZOT, true, 0);
+ if (item_ind != NON_ITEM)
{
- mitm[thing_created].plus = RUNE_ABYSSAL;
- item_colour(mitm[thing_created]);
+ mitm[item_ind].plus = RUNE_ABYSSAL;
+ item_colour(mitm[item_ind]);
}
- move_item_to_grid(&thing_created, chosen_spot);
- return thing_created != NON_ITEM;
+ move_item_to_grid(&item_ind, chosen_spot);
+ return item_ind != NON_ITEM;
}
return false;