diff options
Diffstat (limited to 'src/xtra1.c')
-rw-r--r-- | src/xtra1.c | 18 |
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 */ |