From 85d21b25c86fe94bbb39516fd8715530f308f605 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 28 May 2008 20:45:08 +0000 Subject: Fixed missing Lua errors (dpeg). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5317 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/initfile.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/initfile.cc') diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 496a509df3..841e78e782 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -1393,7 +1393,7 @@ void game_options::read_options(InitLineInput &il, bool runscript, #ifdef CLUA_BINDINGS clua.execstring(luacode.c_str()); if (!clua.error.empty()) - mprf(MSGCH_ERROR, "Lua error: %s\n", clua.error.c_str()); + mprf(MSGCH_ERROR, "Lua error: %s", clua.error.c_str()); luacode.clear(); #endif } @@ -1408,7 +1408,7 @@ void game_options::read_options(InitLineInput &il, bool runscript, { clua.execstring(luacode.c_str()); if (!clua.error.empty()) - mprf(MSGCH_ERROR, "Lua error: %s\n", clua.error.c_str()); + mprf(MSGCH_ERROR, "Lua error: %s", clua.error.c_str()); } #endif luacode.clear(); @@ -1442,7 +1442,7 @@ void game_options::read_options(InitLineInput &il, bool runscript, luacond += "]] )\n"; clua.execstring(luacond.c_str()); if (!clua.error.empty()) - mprf(MSGCH_ERROR, "Lua error: %s\n", clua.error.c_str()); + mprf(MSGCH_ERROR, "Lua error: %s", clua.error.c_str()); } #endif @@ -1881,7 +1881,7 @@ void game_options::read_option_line(const std::string &str, bool runscript) #ifdef CLUA_BINDINGS clua.execfile(field.c_str(), false, false); if (!clua.error.empty()) - mprf(MSGCH_ERROR, "Lua error: %s\n", clua.error.c_str()); + mprf(MSGCH_ERROR, "Lua error: %s", clua.error.c_str()); #endif } else if (key == "colour" || key == "color") @@ -2759,7 +2759,7 @@ void game_options::read_option_line(const std::string &str, bool runscript) { #ifdef CLUA_BINDINGS if (!clua.error.empty()) - mprf(MSGCH_ERROR, "Lua error: %s\n", clua.error.c_str()); + mprf(MSGCH_ERROR, "Lua error: %s", clua.error.c_str()); #endif named_options[key] = orig_field; } -- cgit v1.2.3-54-g00ecf