diff options
author | Neil Moore <neil@s-z.org> | 2012-08-01 16:09:16 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-08-01 17:08:37 -0400 |
commit | 1cc90225baf47270bbe2a22c1ecbbc839eaa2b90 (patch) | |
tree | bd8816720989c3d2193ccaa82cbca5f7b6f2deca /crawl-ref/source/l_crawl.cc | |
parent | a0a9240421e89e77aac6011671931521d7e60f0a (diff) | |
download | crawl-ref-1cc90225baf47270bbe2a22c1ecbbc839eaa2b90.tar.gz crawl-ref-1cc90225baf47270bbe2a22c1ecbbc839eaa2b90.zip |
Massive style fix (braces, indentation, etc.)
Diffstat (limited to 'crawl-ref/source/l_crawl.cc')
-rw-r--r-- | crawl-ref/source/l_crawl.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/l_crawl.cc b/crawl-ref/source/l_crawl.cc index e537c28cb0..10558f7328 100644 --- a/crawl-ref/source/l_crawl.cc +++ b/crawl-ref/source/l_crawl.cc @@ -950,8 +950,10 @@ LUAFN(_crawl_millis) struct timezone tz; const int error = gettimeofday(&tv, &tz); if (error) + { luaL_error(ls, make_stringf("Failed to get time: %s", strerror(error)).c_str()); + } lua_pushnumber(ls, tv.tv_sec * 1000 + tv.tv_usec / 1000); return 1; |