summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-28 20:45:08 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-28 20:45:08 +0000
commit85d21b25c86fe94bbb39516fd8715530f308f605 (patch)
tree38ddd11f4df854b83f89d0d55f55a403721b3776 /crawl-ref/source/initfile.cc
parentc1a18637483787cffd4cf2cd85ced0dbfd26b1b7 (diff)
downloadcrawl-ref-85d21b25c86fe94bbb39516fd8715530f308f605.tar.gz
crawl-ref-85d21b25c86fe94bbb39516fd8715530f308f605.zip
Fixed missing Lua errors (dpeg).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5317 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc10
1 files changed, 5 insertions, 5 deletions
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;
}