summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-12-11 08:09:30 +0100
committerBardur Arantsson <bardur@scientician.net>2015-12-11 08:09:30 +0100
commitcb7d0c75f4bc7dc4810fc0d1db4723c0079d4d72 (patch)
tree0f735f611b4820a9a3ad11d984e40ad101e1accf
parentbb7e2c66a403a9e0af291a539bfb4e7bc9ebca92 (diff)
Remove unused object_kind field "extra"
-rw-r--r--src/init1.cc5
-rw-r--r--src/object_kind.hpp1
2 files changed, 2 insertions, 4 deletions
diff --git a/src/init1.cc b/src/init1.cc
index ec3b768c..d9474e63 100644
--- a/src/init1.cc
+++ b/src/init1.cc
@@ -3989,16 +3989,15 @@ errr init_k_info_txt(FILE *fp)
/* Process 'W' for "More Info" (one line only) */
if (buf[0] == 'W')
{
- int level, extra, wgt;
+ int level, unused, wgt;
long cost;
/* Scan for the values */
if (4 != sscanf(buf + 2, "%d:%d:%d:%ld",
- &level, &extra, &wgt, &cost)) return (1);
+ &level, &unused, &wgt, &cost)) return (1);
/* Save the values */
k_ptr->level = level;
- k_ptr->extra = extra;
k_ptr->weight = wgt;
k_ptr->cost = cost;
diff --git a/src/object_kind.hpp b/src/object_kind.hpp
index a67d1d61..505f54d9 100644
--- a/src/object_kind.hpp
+++ b/src/object_kind.hpp
@@ -53,7 +53,6 @@ struct object_kind
byte chance[ALLOCATION_MAX]; /* Allocation chance(s) */
byte level; /* Level */
- byte extra; /* Something */
byte d_attr; /* Default object attribute */