diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-10-03 13:48:04 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-10-03 16:53:28 +0200 |
commit | 52d390ae806240e7c68f51057e63747aedb0f157 (patch) | |
tree | c2f59393e69db8f63475cd1e76cc1ac71394b7dd /crawl-ref/source/AppHdr.h | |
parent | 2dca142417c7838dd09c71aa12c63302fa0c7db3 (diff) | |
download | crawl-ref-52d390ae806240e7c68f51057e63747aedb0f157.tar.gz crawl-ref-52d390ae806240e7c68f51057e63747aedb0f157.zip |
Don't waste electricity for mapstat infinite loops.
A hard limit of 60 seconds of CPU time per level.
Diffstat (limited to 'crawl-ref/source/AppHdr.h')
-rw-r--r-- | crawl-ref/source/AppHdr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h index 20e535085e..240eede574 100644 --- a/crawl-ref/source/AppHdr.h +++ b/crawl-ref/source/AppHdr.h @@ -286,6 +286,11 @@ static inline double pow(int x, double y) { return std::pow((double)x, y); } // Use UTC for dgamelaunch servers. #define TIME_FN gmtime + + // Outside DGL, there's a local player who can kill the game himself, so + // there are no false positives. + // (A false positive would be possible with wizmode shenanigans.) + #define WATCHDOG #endif #ifndef TIME_FN |