From 6c99170d8941c25c6aac7f131f0d55df52caa63a Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 8 Dec 2006 12:28:30 +0000 Subject: 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 --- crawl-ref/source/libutil.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'crawl-ref/source/libutil.cc') 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 */ -- cgit v1.2.3-54-g00ecf