summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgnevt.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_dgnevt.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_dgnevt.cc')
-rw-r--r--crawl-ref/source/l_dgnevt.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/l_dgnevt.cc b/crawl-ref/source/l_dgnevt.cc
index 8fc155c6f5..f280a4362a 100644
--- a/crawl-ref/source/l_dgnevt.cc
+++ b/crawl-ref/source/l_dgnevt.cc
@@ -20,7 +20,7 @@ static int dgnevent_place(lua_State *ls)
DEVENT(ls, 1, dev);
lua_pushnumber(ls, dev->place.x);
lua_pushnumber(ls, dev->place.y);
- return (2);
+ return 2;
}
static int dgnevent_dest(lua_State *ls)
@@ -28,7 +28,7 @@ static int dgnevent_dest(lua_State *ls)
DEVENT(ls, 1, dev);
lua_pushnumber(ls, dev->dest.x);
lua_pushnumber(ls, dev->dest.y);
- return (2);
+ return 2;
}
static int dgnevent_ticks(lua_State *ls)
@@ -83,7 +83,7 @@ static dgn_event_type dgn_event_type_by_name(const std::string &name)
for (unsigned i = 0; i < ARRAYSZ(dgn_event_type_names); ++i)
if (dgn_event_type_names[i] == name)
return static_cast<dgn_event_type>(i? 1 << (i - 1) : 0);
- return (DET_NONE);
+ return DET_NONE;
}
static const char *dgn_event_type_name(unsigned evmask)
@@ -117,7 +117,7 @@ static int dgn_dgn_event(lua_State *ls)
dgn_push_event_type(ls, i);
retvals++;
}
- return (retvals);
+ return retvals;
}
static dgn_event_type dgn_param_to_event_type(lua_State *ls, int n)
@@ -127,19 +127,19 @@ static dgn_event_type dgn_param_to_event_type(lua_State *ls, int n)
else if (lua_isstring(ls, n))
return dgn_event_type_by_name(lua_tostring(ls, n));
else
- return (DET_NONE);
+ return DET_NONE;
}
static int dgn_dgn_event_is_global(lua_State *ls)
{
lua_pushboolean(ls, dgn_param_to_event_type(ls, 1) & DET_GLOBAL_MASK);
- return (1);
+ return 1;
}
static int dgn_dgn_event_is_position(lua_State *ls)
{
lua_pushboolean(ls, dgn_param_to_event_type(ls, 1) & DET_POSITION_MASK);
- return (1);
+ return 1;
}
const struct luaL_reg dgn_event_dlib[] =