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 | 76b3632d13bbf57c6354bc10f67ea849f1d47279 (patch) | |
tree | b7e36fe675f6ffa01364d47ca70422c4cbbd032a /src/corrupt.cc | |
parent | 46f69654774b0eb51bd4706cf7fd9d11fbc8eec8 (diff) |
Rework player_race_mod::{title,desc} to std::string
Diffstat (limited to 'src/corrupt.cc')
-rw-r--r-- | src/corrupt.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/corrupt.cc b/src/corrupt.cc index 8ad22ea9..bc9f3a8b 100644 --- a/src/corrupt.cc +++ b/src/corrupt.cc @@ -90,19 +90,13 @@ static void player_gain_vampire() { player_race_mod *rmp_ptr = &race_mod_info[SUBRACE_SAVE]; - /* Be a Vampire and be proud of it */ - cptr title = rmp_ptr->title; - if (streq(title, "Vampire")) + if (rmp_ptr->title == "Vampire") { - title = "Vampire"; rmp_ptr->place = FALSE; - set_subrace_title(rmp_ptr, title); } else { - char buf[512]; - sprintf(buf, "Vampire %s", title); - set_subrace_title(rmp_ptr, buf); + rmp_ptr->title = fmt::format("Vampire {}", rmp_ptr->title); } /* Bonus/and .. not bonus :) */ |