diff options
author | Bardur Arantsson <bardur@scientician.net> | 2018-03-25 20:07:31 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2018-03-25 20:07:31 +0200 |
commit | bf0ddb1341419740684db08812c3b077d101d25d (patch) | |
tree | fa3b5c1a13c126e5d2c28e6b667cd043350f1f46 /src/spells4.cc | |
parent | decd9655b60f7437e58e76b92ff658b639b5f92a (diff) |
Remove 'cptr' typedef
It's time to rip off the band-aid.
Diffstat (limited to 'src/spells4.cc')
-rw-r--r-- | src/spells4.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/spells4.cc b/src/spells4.cc index ca010627..33b2b24e 100644 --- a/src/spells4.cc +++ b/src/spells4.cc @@ -59,7 +59,7 @@ static bool_ uses_piety_to_cast(int s) } /** Describe what type of energy the spell uses for casting */ -cptr get_power_name(s32b s) +const char *get_power_name(s32b s) { return uses_piety_to_cast(s) ? "piety" : "mana"; } @@ -413,13 +413,13 @@ static std::string spell_school_name(spell_type *spell) return buf.str(); } -int print_spell(cptr label_, byte color, int y, s32b s) +int print_spell(const char *label_, byte color, int y, s32b s) { s32b level; bool_ na; spell_type *spell = spell_at(s); - cptr spell_info = spell_type_info(spell); - cptr label = (label_ == NULL) ? "" : label_; + const char *spell_info = spell_type_info(spell); + const char *label = (label_ == NULL) ? "" : label_; char level_str[8] = "n/a"; char buf[128]; |