diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-08 12:28:30 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-08 12:28:30 +0000 |
commit | 6c99170d8941c25c6aac7f131f0d55df52caa63a (patch) | |
tree | 73993fb9a6610d14975be5239929f26f06b9fc94 /crawl-ref/source/libutil.cc | |
parent | 93de8db42745db1d85c850cb1001baa1ac55bcc0 (diff) | |
download | crawl-ref-6c99170d8941c25c6aac7f131f0d55df52caa63a.tar.gz crawl-ref-6c99170d8941c25c6aac7f131f0d55df52caa63a.zip |
Fixed bug where Pandemonium demonlords did not get their rightful runes
(Cerebov and company) - bug was introduced circa 0.1.3.
[1610237] Vaults can request specific items using ITEM: declarations and the
item selectors defghijk.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@596 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libutil.cc')
-rw-r--r-- | crawl-ref/source/libutil.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc index 556365968e..30bfc1b32c 100644 --- a/crawl-ref/source/libutil.cc +++ b/crawl-ref/source/libutil.cc @@ -70,6 +70,19 @@ void play_sound( const char *file ) #endif } +std::string make_stringf(const char *s, ...) +{ + va_list args; + va_start(args, s); + + char buf[400]; + vsnprintf(buf, sizeof buf, s, args); + + va_end(args); + + return (buf); +} + void uppercase(std::string &s) { /* yes, this is bad, but std::transform() has its own problems */ |