summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-01 19:18:06 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-01 19:18:06 +0000
commit313d4612b5af4371c00d24fa3559a7310c6f3849 (patch)
treeaa465a848b4364d4940f1cdf42baf6e94ce89b20 /crawl-ref/source/output.cc
parent1fcb6aa13880495afd0c26e28f9c62d8d99397e0 (diff)
downloadcrawl-ref-313d4612b5af4371c00d24fa3559a7310c6f3849.tar.gz
crawl-ref-313d4612b5af4371c00d24fa3559a7310c6f3849.zip
Fixed bad species name (eg: deep elves with the bows title) in dump because of reuse of static buffers (Iaido).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2288 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index 745f6881b3..a6aac29f88 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -726,11 +726,13 @@ std::vector<formatted_string> get_full_detail(bool calc_unid, long sc)
"Worship : %s%s\n"
"Level : %7d\n"
"Exp : %7lu\n",
- you.your_name, player_title(),
+ you.your_name,
+ player_title().c_str(),
score.c_str(),
- species_name(you.species,you.experience_level),
+ species_name(you.species,you.experience_level).c_str(),
you.class_name,
- god_colour_tag, godpowers.c_str(),
+ god_colour_tag,
+ godpowers.c_str(),
you.experience_level,
you.experience);
cols.add_formatted(0, buf, false);
@@ -993,12 +995,13 @@ void print_overview_screen()
std::string text;
char title[50];
- snprintf(title, sizeof title, " the %s ", player_title());
+ snprintf(title, sizeof title, " the %s ", player_title().c_str());
char race_class[50];
snprintf(race_class, sizeof race_class,
"(%s %s)",
- species_name(you.species, you.experience_level), you.class_name);
+ species_name(you.species, you.experience_level).c_str(),
+ you.class_name);
char time_turns[50] = "";