diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-01-09 20:29:40 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-01-09 20:29:40 +0530 |
commit | 8b1fac167bcae924466d59df079106101f09892c (patch) | |
tree | 9b17140119b81d3a0d23988bce06cb9442d8eeec /crawl-ref/source/dbg-asrt.cc | |
parent | f402990b9d7a17aa5e775c445891bc8428f40692 (diff) | |
download | crawl-ref-8b1fac167bcae924466d59df079106101f09892c.tar.gz crawl-ref-8b1fac167bcae924466d59df079106101f09892c.zip |
Don't let monsters wield stacks of throwing weapons (fixes NetHackish messages about monsters wielding 6 spears).
Diffstat (limited to 'crawl-ref/source/dbg-asrt.cc')
-rw-r--r-- | crawl-ref/source/dbg-asrt.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/dbg-asrt.cc b/crawl-ref/source/dbg-asrt.cc index 50ebea9af5..f2bdc49270 100644 --- a/crawl-ref/source/dbg-asrt.cc +++ b/crawl-ref/source/dbg-asrt.cc @@ -635,7 +635,7 @@ void do_crash_dump() static void _BreakStrToDebugger(const char *mesg) { #if defined(TARGET_OS_MACOSX) || defined(TARGET_COMPILER_MINGW) - fprintf(stderr, mesg); + fprintf(stderr, "%s", mesg); // raise(SIGINT); // this is what DebugStr() does on OS X according to Tech Note 2030 int* p = NULL; // but this gives us a stack crawl... *p = 0; @@ -687,4 +687,3 @@ void DEBUGSTR(const char *format, ...) } #endif - |