summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
commit0e54dbeb4e7a6c3d2b534b1a64f7044b3ddb7bfc (patch)
treee3d0ddd84dd4eec76cc6b6476f277cf190eba18f /src
parent59df18cd52b37fb69097a7ce9ad7d1e7efa734de (diff)
Remove dead code
Diffstat (limited to 'src')
-rw-r--r--src/object2.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/object2.cc b/src/object2.cc
index ec34db40..c474fe18 100644
--- a/src/object2.cc
+++ b/src/object2.cc
@@ -1984,15 +1984,11 @@ static void finalize_randart(object_type* o_ptr, int lev)
{
int r;
int i = 0;
- int foo = lev + randnor(0, 5);
bool_ flag = TRUE;
/* Paranoia */
if (o_ptr->tval != TV_RANDART) return;
- if (foo < 1) foo = 1;
- if (foo > 100) foo = 100;
-
while (flag)
{
r = rand_int(MAX_RANDARTS);