diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-08-02 12:54:15 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-08-02 12:54:15 +0000 |
commit | d5e5340c3926d1cf97f6cba151ffaecb20bfb35f (patch) | |
tree | d1faf7d5b27df8f3c523a8dd33357804118e62b1 /trunk/source/AppHdr.h | |
parent | 7b2204d69f21d7075e4666ee032d7a129081bc4b (diff) | |
download | crawl-ref-d5e5340c3926d1cf97f6cba151ffaecb20bfb35f.tar.gz crawl-ref-d5e5340c3926d1cf97f6cba151ffaecb20bfb35f.zip |
Integrated travel patch as of 20060727
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'trunk/source/AppHdr.h')
-rw-r--r-- | trunk/source/AppHdr.h | 54 |
1 files changed, 52 insertions, 2 deletions
diff --git a/trunk/source/AppHdr.h b/trunk/source/AppHdr.h index 426ba93a39..44c115b80a 100644 --- a/trunk/source/AppHdr.h +++ b/trunk/source/AppHdr.h @@ -45,6 +45,18 @@ #pragma message("Compiling AppHeader.h (this message should only appear once)") #endif +#if defined(GCC) +# define HASH_CONTAINER_NS __gnu_cxx +# define HASH_CONTAINERS +#endif + +// Enables stash-tracking: keeps track of items in the dungeon as a convenience +// for the player. +#define STASH_TRACKING + +// Uncomment to enable the Crawl Lua bindings. +// +// #define CLUA_BINDINGS // ========================================================================= // System Defines @@ -88,6 +100,37 @@ // term used... under X Windows try "rxvt". #define USE_COLOUR_OPTS + // More sophisticated character handling + #define CURSES_USE_KEYPAD + + // How long (milliseconds) curses should wait for additional characters + // after seeing an Escape (0x1b) keypress. May not be available on all + // curses implementations. + #define CURSES_SET_ESCDELAY 20 + + // Use this to seed the PRNG with a bit more than just time()... turning + // this off is perfectly okay, the game just becomes more exploitable + // with a bit of hacking (ie only by people who know how). + // + // For now, we'll make it default to on for Linux (who should have + // no problems with compiling this). + #define USE_MORE_SECURE_SEED + + // Use POSIX regular expressions + #define REGEX_POSIX + + // If you have libpcre, you can use that instead of POSIX regexes - + // uncomment the line below and add -lpcre to your makefile. + // #define REGEX_PCRE + + // Uncomment (and edit as appropriate) to play sounds. + // + // WARNING: Enabling sounds may compromise security if Crawl is installed + // setuid or setgid. Filenames passed to this command *are not + // validated in any way*. + // + // #define SOUND_PLAY_COMMAND "/usr/bin/play -v .5 %s 2>/dev/null &" + // For cases when the game will be played on terms that don't support the // curses "bold == lighter" 16 colour mode. -- bwr // @@ -128,7 +171,7 @@ #elif defined(DOS) #define DOS_TERM #define SHORT_FILE_NAMES - #define EOL "\n\r" + #define EOL "\r\n" #define CHARACTER_SET A_ALTCHARSET #include <string> @@ -137,13 +180,20 @@ #define NEED_SNPRINTF #endif -#elif defined(WIN32CONSOLE) && (defined(__IBMCPP__) || defined(__BCPLUSPLUS__)) +#elif defined(WIN32CONSOLE) && (defined(__IBMCPP__) || defined(__BCPLUSPLUS__) || defined(__MINGW32__)) #include "libw32c.h" #define PLAIN_TERM #define SHORT_FILE_NAMES #define EOL "\n" #define CHARACTER_SET A_ALTCHARSET #define getstr(X,Y) getConsoleString(X,Y) + + // Uncomment to play sounds. winmm must be linked in if this is uncommented. + // #define WINMM_PLAY_SOUNDS + + // Use Perl-compatible regular expressions. libpcre must be available and + // linked in. + // #define REGEX_PCRE #else #error unsupported compiler #endif |