From cb7d0c75f4bc7dc4810fc0d1db4723c0079d4d72 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 11 Dec 2015 08:09:30 +0100 Subject: Remove unused object_kind field "extra" --- src/init1.cc | 5 ++--- src/object_kind.hpp | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src') 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 */ -- cgit v1.2.3