summaryrefslogtreecommitdiff
path: root/src/init1.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2018-03-25 20:07:30 +0200
committerBardur Arantsson <bardur@scientician.net>2018-03-25 20:07:30 +0200
commit3a34412fbb734e1afcbed8646f446ff29447c2d0 (patch)
tree90d4e856c1c324cf085055cead686f07762f701e /src/init1.cc
parent4e6a906c80ff07b75a6acf4ff585b47303805e46 (diff)
Move k_allow_special to object_kind member
(It's not quite right, but it's better than a global, and we already have a few run-time values in there already.)
Diffstat (limited to 'src/init1.cc')
-rw-r--r--src/init1.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/init1.cc b/src/init1.cc
index e367f603..98c16cc5 100644
--- a/src/init1.cc
+++ b/src/init1.cc
@@ -5927,6 +5927,7 @@ static errr process_dungeon_file_aux(char *buf, int *yval, int *xval, int xvalst
auto &wilderness = game->wilderness;
auto &wf_info = game->edit_data.wf_info;
auto &a_info = game->edit_data.a_info;
+ auto &k_info = game->edit_data.k_info;
int i;
@@ -6251,7 +6252,7 @@ static errr process_dungeon_file_aux(char *buf, int *yval, int *xval, int xvalst
/* Get local object */
object_type *o_ptr = &object_type_body;
- k_allow_special[object_index] = TRUE;
+ k_info[object_index].allow_special = TRUE;
/* Create the item */
object_prep(o_ptr, object_index);
@@ -6261,7 +6262,7 @@ static errr process_dungeon_file_aux(char *buf, int *yval, int *xval, int xvalst
o_ptr->found = OBJ_FOUND_SPECIAL;
- k_allow_special[object_index] = FALSE;
+ k_info[object_index].allow_special = FALSE;
drop_near(o_ptr, -1, y, x);
}