diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:45:07 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:45:07 +0200 |
commit | 35daca530fecc0b74dea0820941a273950c59bf2 (patch) | |
tree | 30f81b244fd18fa96569880fe3f5016e29c05ff3 | |
parent | 9224ae637c06dc1a470ee90a19628c004f1ff35b (diff) |
Fix for 'invisible' inscriptions in object lists
-rw-r--r-- | src/object1.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/object1.cc b/src/object1.cc index c311ee34..c812462f 100644 --- a/src/object1.cc +++ b/src/object1.cc @@ -2070,11 +2070,17 @@ static std::string object_desc_aux(object_type const *o_ptr, int pref, int mode) } /* Note the discount, if any */ - if ((o_ptr->discount) && inscrip.empty()) + if ((o_ptr->discount) && o_ptr->inscription.empty()) { inscrip.push_back(fmt::format("{:d}% off", o_ptr->discount)); } + /* Append the user's inscription */ + if (!o_ptr->inscription.empty()) + { + inscrip.push_back(o_ptr->inscription); + } + /* Append the inscription, if any */ if (!inscrip.empty()) { |