summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgnevt.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-08-07 11:23:15 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-08-08 15:55:12 +0200
commit8e9ce489a95dc5a99a8f7c24214daab1a9aa3737 (patch)
tree413632230322181847a7df0ad58bc8717245ca22 /crawl-ref/source/l_dgnevt.cc
parent1401ecdd7c55daa75c9b869111823c394642c1a7 (diff)
downloadcrawl-ref-8e9ce489a95dc5a99a8f7c24214daab1a9aa3737.tar.gz
crawl-ref-8e9ce489a95dc5a99a8f7c24214daab1a9aa3737.zip
Drop a bunch of parentheses from return statements.
This is incomplete, partially because of me getting bored, partially because of doubts about the point of leaving simple addition/etc in parentheses.
Diffstat (limited to 'crawl-ref/source/l_dgnevt.cc')
-rw-r--r--crawl-ref/source/l_dgnevt.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/l_dgnevt.cc b/crawl-ref/source/l_dgnevt.cc
index 4677676ea9..d877a9f2b2 100644
--- a/crawl-ref/source/l_dgnevt.cc
+++ b/crawl-ref/source/l_dgnevt.cc
@@ -123,7 +123,7 @@ static int dgn_dgn_event(lua_State *ls)
static dgn_event_type dgn_param_to_event_type(lua_State *ls, int n)
{
if (lua_isnumber(ls, n))
- return (static_cast<dgn_event_type>(luaL_checkint(ls, n)));
+ return static_cast<dgn_event_type>(luaL_checkint(ls, n));
else if (lua_isstring(ls, n))
return dgn_event_type_by_name(lua_tostring(ls, n));
else