diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
commit | 8bbf783ead4517465445272f9144cf06bdac9be7 (patch) | |
tree | 9fa9cc4de0c53df33c557d66a9efbc6781f6fb94 /src/q_thrain.cc | |
parent | 013e27d39ee8ee513208d2855c7e3f6252f0c0bf (diff) |
Refactor object_type 'artifact name' field to std::string
We don't really need quarks for this since we're not nearly as
memory-constrained these days.
Diffstat (limited to 'src/q_thrain.cc')
-rw-r--r-- | src/q_thrain.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/q_thrain.cc b/src/q_thrain.cc index 0f490bf0..7cd64bbf 100644 --- a/src/q_thrain.cc +++ b/src/q_thrain.cc @@ -80,18 +80,20 @@ static bool_ quest_thrain_death_hook(void *, void *in_, void *) int x = m_ptr->fx; int y = m_ptr->fy; int i, j; - object_type forge, *q_ptr; delete_monster_idx(r); /* Wipe the glass walls and create a stair */ for (i = x - 1; i <= x + 1; i++) + { for (j = y - 1; j <= y + 1; j++) { if (in_bounds(j, i)) cave_set_feat(j, i, FEAT_FLOOR); } + } /* Get local object */ + object_type forge, *q_ptr; q_ptr = &forge; /* Wipe the object */ @@ -100,7 +102,7 @@ static bool_ quest_thrain_death_hook(void *, void *in_, void *) q_ptr->number = 1; q_ptr->found = OBJ_FOUND_REWARD; create_artifact(q_ptr, FALSE, TRUE); - q_ptr->art_name = quark_add("of Thrain"); + q_ptr->artifact_name = "of Thrain"; /* Drop it in the dungeon */ drop_near(q_ptr, -1, y, x); |