diff options
author | Neil Moore <neil@s-z.org> | 2013-11-15 17:26:11 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-11-15 17:26:11 -0500 |
commit | e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68 (patch) | |
tree | ec3e4b86d3b4ed96250f735b4e597e83ee886de8 /crawl-ref/source/clua.cc | |
parent | b65bf4d5198c19095e3084a88983680df19ec5ee (diff) | |
download | crawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.tar.gz crawl-ref-e7b96ffa70ca93a3cea9e2cead6f40085a6a2d68.zip |
More formatting fixes for return (...);
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r-- | crawl-ref/source/clua.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc index 436c7f6c5d..5f239c2cb2 100644 --- a/crawl-ref/source/clua.cc +++ b/crawl-ref/source/clua.cc @@ -220,9 +220,9 @@ int CLua::execstring(const char *s, const char *context, int nresults) bool CLua::is_path_safe(string s, bool trusted) { lowercase(s); - return (s.find("..") == string::npos && shell_safe(s.c_str()) - // loading dlua stuff would spew tons of error messages - && (trusted || s.find("dlua") != 0)); + return s.find("..") == string::npos && shell_safe(s.c_str()) + // loading dlua stuff would spew tons of error messages + && (trusted || s.find("dlua") != 0); } int CLua::loadfile(lua_State *ls, const char *filename, bool trusted, |