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 | 013e27d39ee8ee513208d2855c7e3f6252f0c0bf (patch) | |
tree | 78ff86f87247b6bbcc43b14e1c00d10cfaca683f /src/q_fireprof.cc | |
parent | b15461dbcedf27f28a843f700ce0473d57364230 (diff) |
Refactor object_type 'inscription' 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_fireprof.cc')
-rw-r--r-- | src/q_fireprof.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/q_fireprof.cc b/src/q_fireprof.cc index eb762fc4..033aec05 100644 --- a/src/q_fireprof.cc +++ b/src/q_fireprof.cc @@ -498,18 +498,16 @@ static bool_ fireproof_gen_hook(void *, void *, void *) /* create essence */ { - int x, y; object_type forge; - object_prep(&forge, lookup_kind(settings->tval, fireproof_get_sval())); /* mark item */ forge.pval2 = fireproof_get_sval(); - forge.note = quark_add("quest"); + forge.inscription = "quest"; /* roll for co-ordinates in top half of map */ - y = randint(3) + 2; - x = randint(45) + 2; + int const y = randint(3) + 2; + int const x = randint(45) + 2; /* drop it */ drop_near(&forge, -1, y, x); |