summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgn.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-04-20 03:11:25 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-04-20 03:28:26 +0200
commit8e11520da146f4b6b39dadbbd4ced0237ca0b606 (patch)
tree46c2ca023d1e6f0aa16e774d6f43dbd50019664f /crawl-ref/source/l_dgn.cc
parent9716a531a19f089821689a32910f9f5bf2864fe4 (diff)
downloadcrawl-ref-8e11520da146f4b6b39dadbbd4ced0237ca0b606.tar.gz
crawl-ref-8e11520da146f4b6b39dadbbd4ced0237ca0b606.zip
Drop pointless braces after if/for/while everywhere.
Diffstat (limited to 'crawl-ref/source/l_dgn.cc')
-rw-r--r--crawl-ref/source/l_dgn.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/crawl-ref/source/l_dgn.cc b/crawl-ref/source/l_dgn.cc
index 6f6a51baee..3acae0b0ae 100644
--- a/crawl-ref/source/l_dgn.cc
+++ b/crawl-ref/source/l_dgn.cc
@@ -74,9 +74,7 @@ static void dgn_add_depths(depth_ranges &drs, lua_State *ls, int s, int e)
static int dgn_depth_proc(lua_State *ls, depth_ranges &dr, int s)
{
if (lua_gettop(ls) < s)
- {
PLUARET(string, dr.describe().c_str());
- }
if (lua_isnil(ls, s))
{
@@ -370,9 +368,7 @@ int dgn_map_add_transform(lua_State *ls,
for (int i = 2, size = lua_gettop(ls); i <= size; ++i)
{
if (lua_isnil(ls, i))
- {
luaL_error(ls, "Unexpected nil.");
- }
else
{
std::string err = (map->map.*add)(luaL_checkstring(ls, i));
@@ -772,9 +768,7 @@ static int dgn_lfloorcol(lua_State *ls)
std::string error;
if (colour == BLACK)
- {
error = "Can't set floor to black.";
- }
else
{
error = "No such colour as '";
@@ -805,9 +799,7 @@ static int dgn_lrockcol(lua_State *ls)
std::string error;
if (colour == BLACK)
- {
error = "Can't set rock to black.";
- }
else
{
error = "No such colour as '";