summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_mapgrd.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_mapgrd.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_mapgrd.cc')
-rw-r--r--crawl-ref/source/l_mapgrd.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/l_mapgrd.cc b/crawl-ref/source/l_mapgrd.cc
index acf7239543..7d6fea3d6b 100644
--- a/crawl-ref/source/l_mapgrd.cc
+++ b/crawl-ref/source/l_mapgrd.cc
@@ -25,7 +25,7 @@ static int mapgrd_get(lua_State *ls)
mapref->map = map;
mapref->col = column;
- return (1);
+ return 1;
}
static int mapgrd_set(lua_State *ls)
@@ -41,7 +41,7 @@ static char* mapgrd_glyph(lua_State *ls, int &col, int &row)
map_lines &lines = mapc->map->map;
if (row < 0 || col < 0 || col >= lines.width() || row >= lines.height())
- return (NULL);
+ return NULL;
coord_def mc(col, row);
return (&lines(mc));
@@ -60,7 +60,7 @@ static int mapgrd_col_get(lua_State *ls)
lua_pushstring(ls, buf);
- return (1);
+ return 1;
}
static int mapgrd_col_set(lua_State *ls)
@@ -76,7 +76,7 @@ static int mapgrd_col_set(lua_State *ls)
(*gly) = str[0];
- return (0);
+ return 0;
}
void dluaopen_mapgrd(lua_State *ls)