summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgngrd.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
commitc41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch)
tree764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/l_dgngrd.cc
parentb80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff)
downloadcrawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.tar.gz
crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.zip
Drop parentheses around scalar values in "return".
Diffstat (limited to 'crawl-ref/source/l_dgngrd.cc')
-rw-r--r--crawl-ref/source/l_dgngrd.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/l_dgngrd.cc b/crawl-ref/source/l_dgngrd.cc
index f2b52f98e9..ef3cc86f34 100644
--- a/crawl-ref/source/l_dgngrd.cc
+++ b/crawl-ref/source/l_dgngrd.cc
@@ -47,7 +47,7 @@ dungeon_feature_type check_lua_feature(lua_State *ls, int idx)
const dungeon_feature_type f = _get_lua_feature(ls, idx);
if (!f)
luaL_argerror(ls, idx, "Invalid dungeon feature");
- return (f);
+ return f;
}
#define FEAT(f, pos) \
@@ -65,7 +65,7 @@ static int dgn_feature_desc(lua_State *ls)
const std::string s =
feature_description(feat, NUM_TRAPS, "", dtype, need_stop);
lua_pushstring(ls, s.c_str());
- return (1);
+ return 1;
}
static int dgn_feature_desc_at(lua_State *ls)
@@ -80,14 +80,14 @@ static int dgn_feature_desc_at(lua_State *ls)
luaL_checkint(ls, 2)),
false, dtype, need_stop);
lua_pushstring(ls, s.c_str());
- return (1);
+ return 1;
}
static int dgn_max_bounds(lua_State *ls)
{
lua_pushnumber(ls, GXM);
lua_pushnumber(ls, GYM);
- return (2);
+ return 2;
}
static int dgn_in_bounds(lua_State *ls)
@@ -96,7 +96,7 @@ static int dgn_in_bounds(lua_State *ls)
int y = luaL_checkint(ls, 2);
lua_pushboolean(ls, in_bounds(x, y));
- return (1);
+ return 1;
}
static int dgn_grid(lua_State *ls)
@@ -117,7 +117,7 @@ LUAFN(dgn_distance)
COORDS(p1, 1, 2);
COORDS(p2, 3, 4);
lua_pushnumber(ls, distance(p1, p2));
- return (1);
+ return 1;
}
LUAFN(dgn_seen_replace_feat)
@@ -126,7 +126,7 @@ LUAFN(dgn_seen_replace_feat)
dungeon_feature_type f2 = _get_lua_feature(ls, 2);
lua_pushboolean(ls, seen_replace_feat(f1, f2));
- return (1);
+ return 1;
}
const struct luaL_reg dgn_grid_dlib[] =