summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hiscores.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-15 07:27:59 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-15 07:27:59 +0000
commit9b09694770ae4724f3f264603b8ba7ff3865b06a (patch)
treecd9523ea11f371a08ba7eca733fa81fbaf09e438 /crawl-ref/source/hiscores.cc
parent0cb9011c4d8b1075d0459007641cb2cd7fa94907 (diff)
downloadcrawl-ref-9b09694770ae4724f3f264603b8ba7ff3865b06a.tar.gz
crawl-ref-9b09694770ae4724f3f264603b8ba7ff3865b06a.zip
Made make_time_string() return std::string, not char*.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1474 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r--crawl-ref/source/hiscores.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc
index 30f1928da9..ca0136afcb 100644
--- a/crawl-ref/source/hiscores.cc
+++ b/crawl-ref/source/hiscores.cc
@@ -1161,7 +1161,6 @@ std::string scorefile_entry::game_time(death_desc_verbosity verbosity) const
{
char username[80] = "The";
char scratch[INFO_SIZE];
- char tmp[80];
#ifdef MULTIUSER
if (uid > 0)
@@ -1175,11 +1174,9 @@ std::string scorefile_entry::game_time(death_desc_verbosity verbosity) const
}
}
#endif
-
- make_time_string( real_time, tmp, sizeof(tmp) );
-
snprintf( scratch, INFO_SIZE, "%s game lasted %s (%ld turns).",
- username, tmp, num_turns );
+ username, make_time_string(real_time).c_str(),
+ num_turns );
line += scratch;
line += hiscore_newline_string();