summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgnit.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-08-01 16:09:16 -0400
committerNeil Moore <neil@s-z.org>2012-08-01 17:08:37 -0400
commit1cc90225baf47270bbe2a22c1ecbbc839eaa2b90 (patch)
treebd8816720989c3d2193ccaa82cbca5f7b6f2deca /crawl-ref/source/l_dgnit.cc
parenta0a9240421e89e77aac6011671931521d7e60f0a (diff)
downloadcrawl-ref-1cc90225baf47270bbe2a22c1ecbbc839eaa2b90.tar.gz
crawl-ref-1cc90225baf47270bbe2a22c1ecbbc839eaa2b90.zip
Massive style fix (braces, indentation, etc.)
Diffstat (limited to 'crawl-ref/source/l_dgnit.cc')
-rw-r--r--crawl-ref/source/l_dgnit.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/l_dgnit.cc b/crawl-ref/source/l_dgnit.cc
index 7318815b8d..8827ee7630 100644
--- a/crawl-ref/source/l_dgnit.cc
+++ b/crawl-ref/source/l_dgnit.cc
@@ -104,8 +104,10 @@ static int dgn_item_property_set(lua_State *ls)
const std::string key = luaL_checkstring(ls, 2);
const std::string type = luaL_checkstring(ls, 3);
if (type.empty() || type.length() > 1)
+ {
luaL_error(ls, "Expected type: [BbSifsC], got: '%s'",
type.c_str());
+ }
switch (type[0])
{
@@ -146,8 +148,10 @@ static int dgn_item_property(lua_State *ls)
const std::string key = luaL_checkstring(ls, 2);
const std::string type = luaL_checkstring(ls, 3);
if (type.empty() || type.length() > 1)
+ {
luaL_error(ls, "Expected type: [BbSifsC], got: '%s'",
type.c_str());
+ }
if (!item->props.exists(key))
{