summaryrefslogtreecommitdiff
path: root/src/xtra1.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2011-02-19 17:09:03 +0100
committerBardur Arantsson <bardur@scientician.net>2011-02-19 19:32:06 +0100
commit946d101429a49b656ee37ad00a927787e2d463fd (patch)
tree99623edd7ad64502efbdefcc2ad1eaf693a062b2 /src/xtra1.c
parent6a077f767bab67c5847e6ccf98513151462879a4 (diff)
Remove dead (#if 0) code.
Diffstat (limited to 'src/xtra1.c')
-rw-r--r--src/xtra1.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/xtra1.c b/src/xtra1.c
index d1996b18..2543baab 100644
--- a/src/xtra1.c
+++ b/src/xtra1.c
@@ -4537,7 +4537,6 @@ bool monk_heavy_armor(void)
static int get_artifact_idx(int level)
{
int count = 0, i;
- bool OK = FALSE;
while (count < 1000)
{
@@ -4557,23 +4556,12 @@ static int get_artifact_idx(int level)
/* Avoid granting SPECIAL_GENE artifacts */
if (a_ptr->flags4 & TR4_SPECIAL_GENE) continue;
- OK = TRUE;
- break;
+ return i;
}
/* No matches found */
- if (OK == FALSE)
- {
-#if 0 /* pelpel */
- /* XXX XXX XXX Grant the Phial */
- i = 1;
-#endif /* pelpel */
-
- /* Grant a randart */
- i = 0;
- }
-
- return i;
+ /* Grant a randart */
+ return 0;
}
/* Chose a fate */