diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:36:13 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 13:03:13 +0200 |
commit | 9042de61fb4f05a9da01d470ef325d6c6381dd28 (patch) | |
tree | 9801b1dfd90fd296dbfe8a4f20f269913bf5550c /crawl-ref/source/l_mapgrd.cc | |
parent | 53671ccab2db8416aa16b9df6ba799e0cfaa78dd (diff) | |
download | crawl-ref-9042de61fb4f05a9da01d470ef325d6c6381dd28.tar.gz crawl-ref-9042de61fb4f05a9da01d470ef325d6c6381dd28.zip |
Remove parentheses around return (simple_function_call).
For way too paranoid and underinclusive values of "simple".
Diffstat (limited to 'crawl-ref/source/l_mapgrd.cc')
-rw-r--r-- | crawl-ref/source/l_mapgrd.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/l_mapgrd.cc b/crawl-ref/source/l_mapgrd.cc index 7d6fea3d6b..64f4b09ccd 100644 --- a/crawl-ref/source/l_mapgrd.cc +++ b/crawl-ref/source/l_mapgrd.cc @@ -30,7 +30,7 @@ static int mapgrd_get(lua_State *ls) static int mapgrd_set(lua_State *ls) { - return (luaL_error(ls, "%s", "Cannot assign to read-only table.")); + return luaL_error(ls, "%s", "Cannot assign to read-only table."); } static char* mapgrd_glyph(lua_State *ls, int &col, int &row) @@ -52,7 +52,7 @@ static int mapgrd_col_get(lua_State *ls) int col, row; char *gly = mapgrd_glyph(ls, col, row); if (!gly) - return (luaL_error(ls, "Invalid coords: %d, %d", col, row)); + return luaL_error(ls, "Invalid coords: %d, %d", col, row); char buf[2]; buf[0] = *gly; @@ -68,11 +68,11 @@ static int mapgrd_col_set(lua_State *ls) int col, row; char *gly = mapgrd_glyph(ls, col, row); if (!gly) - return (luaL_error(ls, "Invalid coords: %d, %d", col, row)); + return luaL_error(ls, "Invalid coords: %d, %d", col, row); const char *str = luaL_checkstring(ls, 3); if (!str[0] || str[1]) - return (luaL_error(ls, "%s", "mapgrd must be set to a single char.")); + return luaL_error(ls, "%s", "mapgrd must be set to a single char."); (*gly) = str[0]; |