summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/AppHdr.h
Commit message (Collapse)AuthorAgeFilesLines
* Use snprintf() on DOS, we don't want crashes. Non-ancient compilers have it.Adam Borowski2009-12-171-9/+0
| | | | | Preferably, we would detect the presence of such functions, but _some_ folks oppose feature tests.
* Remove unportable hacks from the invocation of tar.Adam Borowski2009-11-251-4/+2
|
* Rename SAVE_PACKAGE_TAR to USE_TAR/USE_ZIP to reduce confusion.Adam Borowski2009-11-251-6/+6
|
* Allow using tar or zip on FreeBSD.Adam Borowski2009-11-251-10/+0
| | | | | Unlike what the comment says, FreeBSD can have zip, and like Linux, it won't usually have it unless installed by hand.
* Use tar on Unix for save files, zip is unlikely to be installed.Adam Borowski2009-11-221-5/+5
|
* Slight formatting cleanup in AppHdr.h.Robert Vollmert2009-11-081-15/+14
|
* Put DJGPP's round() into a #define so other builds don't suffer.Adam Borowski2009-11-061-0/+3
|
* Fix the DOS port.Adam Borowski2009-11-061-0/+2
|
* msvc: add x86_64 build supportSteven Noonan2009-10-241-2/+5
| | | | | | | This updates all the contrib projects for this support as well. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* MSVC: fix build (add missing source files to project)Steven Noonan2009-10-241-0/+2
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* win32: eliminate need for WIN32TILES/WIN32CONSOLE macrosSteven Noonan2009-10-191-1/+1
| | | | | | | | | | | | | | Instead of defined(WIN32CONSOLE) we should use: defined(TARGET_OS_WINDOWS) && !defined(USE_TILE) As well as replace defined(WIN32TILES) with: defined(TARGET_OS_WINDOWS) && defined(USE_TILE) Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* AppHdr.h: move warning-disabler for 4290 to before externs.h includeSteven Noonan2009-10-151-1/+5
| | | | | | externs.h is where the warning is generated, so... Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* AppHdr.h: disable VC++ warning 4290Steven Noonan2009-10-151-0/+1
| | | | | | | | Microsoft warns us that they're ignoring the C++ specification. How nice. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* AppHdr.h: don't redefine REGEX_PCRE if it's already thereSteven Noonan2009-10-151-0/+4
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* fix 'DEBUG' macro usage consistencySteven Noonan2009-10-131-1/+1
| | | | | | | | | | | | | Sometimes we were doing #if DEBUG and others we were doing #ifdef DEBUG. If we mix both, we have problems: If the DEBUG macro isn't defined, the statement '#if DEBUG' doesn't really make sense logically, because 'DEBUG' has no value. And if we '#define DEBUG 0', then the '#ifdef DEBUG's become true statements. The easiest fix is to swap out the #ifs with #ifdefs. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* 8 color terminals: switch to conditional usage based on terminal typeSteven Noonan2009-10-121-4/+1
| | | | | | | | | | | | Apple's Terminal.app sets a TERM_PROGRAM environment variable to "Apple_Terminal". This gives us a good way to detect at runtime whether or not the terminal supports more than 8 colors. The main reason for checking at runtime is that Mac users are able to run other terminal apps (xterm, rxvt, etc), and should expect to see more than 8 colors in terminals that support it. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* MSVC: add tiles build supportSteven Noonan2009-10-121-0/+4
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* project-wide: implement use of platform.h detection macrosSteven Noonan2009-10-101-24/+35
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Include "externs.h" instead of <externs.h> in AppHdr.h.Robert Vollmert2009-10-101-1/+1
| | | | | This fixes compiling some source files separately (make crash-u.o now works while it failed before), but I may well have missed something.
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-3/+1
|
* Replace extraneous tabs with spaces.David Lawrence Ramsey2009-10-011-2/+2
|
* Harden the PRNG for public servers.Mikko Juola2009-10-011-0/+10
| | | | | | Detailed discussion is here: http://www.genodeen.net/index.clua?cwrng Signed-off-by: Darshan Shaligram <dshaligram@users.sourceforge.net>
* Mac OS X: use SQLite on Mac OS X buildsSteven Noonan2009-09-291-4/+0
| | | | | | There's no reason not to. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* AppHdr.h: fix "already defined" macro warnings on OSX and FREEBSDSteven Noonan2009-09-291-0/+4
| | | | | | | If you specify OSX as a macro, it shouldn't cause the compiler to throw a warning. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* AppHdr.h: FreeBSD support addedSteven Noonan2009-09-291-0/+21
| | | | | | | | | | | | | | | With FreeBSD, we have to use SAVE_PACKAGE_NONE for now, because the /usr/bin/zip program isn't part of the base installation, and GNU tar isn't either. FreeBSD has a 'tar' command, but it's BSD tar, rather than GNU tar. And FreeBSD's tar doesn't have the very important '--remove-files' parameter. I've posted on the FreeBSD forums asking about the best way to emulate the '--remove-files' option using nothing but FreeBSD's stock commands. I'll add a SAVE_PACKAGE_BSD_TAR option or similar once I have more information. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Xcode: Mac OS X build fixedSteven Noonan2009-09-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | I was originally going to split this up into multiple patches, but the Xcode project file format is a bit difficult to cleanly split for patching. So anyway, I've made a few changes: - Fixed Xcode 3.2 compatibility (complaints about using GCC 4.2 with the Mac OS X 10.4 SDK, among other things). - Removed the tilegen target (this is now done via a script) - Fixed the Crawl-tiles-cmd target + Now links to AppKit.framework and OpenGL.framework + Set the search path for the SDL, SDL_image and libpng frameworks to be /Library/Frameworks, which is standard. - Fixed the Crawl target + Now copies the necessary non-standard frameworks to the Frameworks directory (this eliminates the dependency on Fink). + Eliminated a couple redundant or worthless steps which did things we really didn't need. - Added precompiled header support to the Crawl-cmd and Crawl-tiles-cmd targets. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* * Apply patch by kotk to fix the Alt-Tab bug (BR 2805959).j-p-e-g2009-07-271-21/+17
| | | | | | | | * Apply patch by trentbuck to allow packaging with tar (BR 2827595). * Fix 2827342: Consider weapons "too large to wield" as useless. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10424 c06c8d41-db1a-0410-9941-cceddc491573
* * Add support for packaging save files with tar. (Patch by Trent W. Buck.)j-p-e-g2009-07-251-2/+23
| | | | | | | | * Fix random blink placing the player in dangerous clouds. * Fix message when trying to place Conjure Flame in a wax wall. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10397 c06c8d41-db1a-0410-9941-cceddc491573
* Make fish on dry land (due to Feawn's Sunlight power) flop about andj-p-e-g2009-07-211-0/+2
| | | | | | | | | | lose hit points until back in water, using ENCH_AQUATIC_LAND. (Bug 2824663) Also fix tiles compilation (patch 2824632) and add DATA_DIR_PATH to tiled icons (patch 2824635). Both patches (and some more) by Trent W. Buck. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10364 c06c8d41-db1a-0410-9941-cceddc491573
* * Rename CREDITS -> CREDITS.txtj-p-e-g2009-06-111-2/+2
| | | | | | | * Change Trog's Hand to rr += 100. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9957 c06c8d41-db1a-0410-9941-cceddc491573
* Fix errno includes, and hopefully DOS compile [2573206].haranp2009-02-081-1/+0
| | | | | | | | If errno.h doesn't exist on DOS, this will fail, but then it would have failed anyway. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8978 c06c8d41-db1a-0410-9941-cceddc491573
* Adding REVISION() macro to all source files.ennewalker2009-01-041-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8217 c06c8d41-db1a-0410-9941-cceddc491573
* Remove pre-Stone Soup change history from source files, and push it allj-p-e-g2008-09-141-22/+0
| | | | | | | | | | into a file crawlhistory.txt in docs/obsolete. I used a perl script to do this under the assumption that all these change logs used the same system following the keyword "Change History". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6930 c06c8d41-db1a-0410-9941-cceddc491573
* Enable core dumps automatically for dgamelaunch builds ↵dshaligram2008-09-131-0/+5
| | | | | | (-DDGL_ENABLE_CORE_DUMP) to make it easier to track down crashes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6912 c06c8d41-db1a-0410-9941-cceddc491573
* When DGAMELAUNCH is defined, use gmtime() instead of localtime() so it's ↵dshaligram2008-08-011-0/+7
| | | | | | 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
* [2026251] Fixed Elf:1 arrival sometimes being disconnected - the map used ↵dshaligram2008-07-241-0/+1
| | | | | | | | | | | ORIENT: south, but defined no exits. Fixed by applying the old floating vault exit behaviour to all vaults (apart from minivaults) so explicit @ exits are now optional. Also fixed maps being unable to place monsters on shallow water. Added debug_mons_scan to scan the mgrd for stranded monsters in fulldebug mode. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6659 c06c8d41-db1a-0410-9941-cceddc491573
* Large tiles-related changes. Platform-specific rendering removed and ↵ennewalker2008-07-151-4/+6
| | | | | | replaced with SDL/OpenGL. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6550 c06c8d41-db1a-0410-9941-cceddc491573
* More release issues. Adding more missing doc files into 'make install' for ↵ennewalker2008-07-121-0/+4
| | | | | | Windows. Adding PCRE to DOS builds by default. Fixing DOS build error due to DJGPP brain damage. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6511 c06c8d41-db1a-0410-9941-cceddc491573
* Enabling PCRE in Windows makefiles. Because we release with libpcre ↵ennewalker2008-07-111-2/+2
| | | | | | enabled, it makes sense to have that be on by default. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6507 c06c8d41-db1a-0410-9941-cceddc491573
* Remove #define SHUT_LABYRINTH because I don't think it's needed anymore.j-p-e-g2008-06-111-22/+18
| | | | | | | Add more information to the version command. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5729 c06c8d41-db1a-0410-9941-cceddc491573
* Another batch of msvc compile fixes.pauldubois2008-03-101-2/+4
| | | | | | | | | | | | | | Added wrapper implementation for opendir/readdir Other functions left stubbed out. It's a shame that crawl's "direct.h" conflicts with <direct.h>. Fixed up use of AppHdr.h in a couple places (it must be included first); changed project to use precompiled headers. crawl now compiles cleanly but doesn't link. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3573 c06c8d41-db1a-0410-9941-cceddc491573
* Tiles!ennewalker2008-01-051-2/+10
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3194 c06c8d41-db1a-0410-9941-cceddc491573
* Don't trim menu_colours [1829940].haranp2007-11-111-5/+0
| | | | | | | Removed a lot of dead code and fixed some minor bugs in wanderer generation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2840 c06c8d41-db1a-0410-9941-cceddc491573
* [1818767] Idle time clamped at 5 minutes.dshaligram2007-10-241-0/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2534 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed map colours being inherited by unrelated maps during compilation.dshaligram2007-10-081-0/+4
| | | | | | Pause after reporting an error for dgamelaunch so that the dgl menu does not hide the error message. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2371 c06c8d41-db1a-0410-9941-cceddc491573
* Increased max monsters to 350, breaks saves, may be buggy. Incremented save ↵dshaligram2007-10-071-1/+1
| | | | | | major version. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2352 c06c8d41-db1a-0410-9941-cceddc491573
* Unicode support tweak: always set locale to what's specified in ↵dshaligram2007-10-041-0/+4
| | | | | | UNICODE_LOCALE, defaulting to en_US.UTF-8. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2322 c06c8d41-db1a-0410-9941-cceddc491573
* remember_name was broken, fixed.dshaligram2007-09-271-0/+2
| | | | | | Colour overlays were not being rotated/mirrored, fixed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2231 c06c8d41-db1a-0410-9941-cceddc491573
* Added DGL_STARTUP_PREFS_BY_NAME to store new character options by usernamedshaligram2007-09-241-0/+4
| | | | | | | | | for dgamelaunch. Dropped ice statue hitpoints to compensate for their immunity to disintegration. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2195 c06c8d41-db1a-0410-9941-cceddc491573
* Set dgl compiles to use a 1000 entry scoreboard.dshaligram2007-07-221-1/+6
| | | | | | Fixed a potential race condition when writing scores. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1911 c06c8d41-db1a-0410-9941-cceddc491573