diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-11 22:32:31 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-11 22:32:31 +0000 |
commit | ead9a6a6bd7e09fef871a51d66c6c94389fa9f4f (patch) | |
tree | 8e0f5aacafb18f66e82536fa457aa4cb5e2505d3 /crawl-ref/source/makeitem.cc | |
parent | 2a2610e618dcfb1c6df6fb691a49bfcd00660949 (diff) | |
download | crawl-ref-ead9a6a6bd7e09fef871a51d66c6c94389fa9f4f.tar.gz crawl-ref-ead9a6a6bd7e09fef871a51d66c6c94389fa9f4f.zip |
Add more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9419 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r-- | crawl-ref/source/makeitem.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index bf76ac12e1..04809c5c70 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -868,10 +868,9 @@ static bool _try_make_weapon_artefact(item_def& item, int force_type, && one_chance_in(50)) { const int idx = find_okay_unrandart(OBJ_WEAPONS, force_type); - if (idx != -1) { - make_item_unrandart( item, idx ); + make_item_unrandart(item, idx); return (true); } } @@ -1802,7 +1801,7 @@ static bool _try_make_armour_artefact(item_def& item, int force_type, const int idx = find_okay_unrandart(OBJ_ARMOUR, force_type); if (idx != -1) { - make_item_unrandart( item, idx ); + make_item_unrandart(item, idx); return (true); } } @@ -2554,14 +2553,14 @@ static bool _try_make_jewellery_unrandart(item_def& item, int force_type, { // The old generation code did not respect force_type here. const int idx = find_okay_unrandart(OBJ_JEWELLERY, force_type); - if (idx != -1) { - make_item_unrandart( item, idx ); + make_item_unrandart(item, idx); rc = true; } } - return rc; + + return (rc); } static int _determine_ring_plus(int subtype) |