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/melee1.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/melee1.cc')
-rw-r--r-- | src/melee1.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/melee1.cc b/src/melee1.cc index ecc44356..5a61a424 100644 --- a/src/melee1.cc +++ b/src/melee1.cc @@ -231,7 +231,7 @@ bool_ carried_make_attack_normal(int r_idx) int do_cut, do_stun; char ddesc[80] = "your symbiote"; - cptr sym_name = symbiote_name(TRUE); + auto sym_name = symbiote_name(true); bool_ alive = TRUE; @@ -286,7 +286,7 @@ bool_ carried_make_attack_normal(int r_idx) ((rand_int(100) + p_ptr->lev) > 50)) { /* Message */ - msg_format("%s is repelled.", sym_name); + msg_format("%s is repelled.", sym_name.c_str()); /* Hack -- Next attack */ continue; @@ -454,7 +454,7 @@ bool_ carried_make_attack_normal(int r_idx) } /* Message */ - if (act) msg_format("%s %s", sym_name, act); + if (act) msg_format("%s %s", sym_name.c_str(), act); /* Roll out the damage */ @@ -1165,7 +1165,7 @@ bool_ carried_make_attack_normal(int r_idx) disturb(1); /* Message */ - msg_format("%s misses you.", sym_name); + msg_format("%s misses you.", sym_name.c_str()); break; } |