summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/AppHdr.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-01 05:38:29 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-01 05:38:29 +0000
commite968c2c7b51a0c13f9b7a2560e555abb5fba4e41 (patch)
tree3574adaf2a63fb69b7f0d3f8aee3a887ad198faa /crawl-ref/source/AppHdr.h
parent9cf14072d9a196d78226da47bc57a49783519605 (diff)
downloadcrawl-ref-e968c2c7b51a0c13f9b7a2560e555abb5fba4e41.tar.gz
crawl-ref-e968c2c7b51a0c13f9b7a2560e555abb5fba4e41.zip
When DGAMELAUNCH is defined, use gmtime() instead of localtime() so it's easier to keep multiple dgl servers in sync.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6744 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/AppHdr.h')
-rw-r--r--crawl-ref/source/AppHdr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h
index 456de40231..4290c5309d 100644
--- a/crawl-ref/source/AppHdr.h
+++ b/crawl-ref/source/AppHdr.h
@@ -267,6 +267,13 @@
// Makes the game ask the user to hit Enter after bailing out with
// an error message.
#define DGL_PAUSE_AFTER_ERROR
+
+ // Use UTC for dgamelaunch servers.
+ #define TIME_FN gmtime
+#endif
+
+#ifndef TIME_FN
+#define TIME_FN localtime
#endif
#if defined(REGEX_POSIX) && defined(REGEX_PCRE)