summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/AppHdr.h
Commit message (Collapse)AuthorAgeFilesLines
* AppHdr.h: fix "already defined" macro warnings on OSX and FREEBSDSteven Noonan2009-09-301-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-301-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 project fixes backported from 'master' branchSteven Noonan2009-09-251-0/+4
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Backport r10424.j-p-e-g2009-07-271-21/+17
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10425 c06c8d41-db1a-0410-9941-cceddc491573
* Backport r10397 to 0.5: conjure flame/blink fix, packaging with tar.j-p-e-g2009-07-251-2/+23
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10398 c06c8d41-db1a-0410-9941-cceddc491573
* Backport the applicable parts of r10364.j-p-e-g2009-07-221-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10367 c06c8d41-db1a-0410-9941-cceddc491573
* * Add SDL licence, update docs (yet again).j-p-e-g2009-06-111-2/+2
| | | | | | | | | | | * Add range flash to 'z'. * Default HISCORE_WEAPON_DETAIL to true. * Rename CREDITS to CREDITS.txt to make it more accessible to Windows users. :p I guess changes.stone_soup should also be renamed, maybe to changelog.txt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9956 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
* Updated INSTALL for 0.3.dshaligram2007-07-111-6/+12
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1833 c06c8d41-db1a-0410-9941-cceddc491573
* Added support for limiting memory used by the Lua interpreter.dshaligram2007-06-211-8/+10
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1613 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed broken compile on DOS and Windows.dshaligram2007-06-201-1/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1611 c06c8d41-db1a-0410-9941-cceddc491573
* Added support for Unicode characters in the map display with ncursesw (enableddshaligram2007-06-071-0/+8
| | | | | | | | | | | | by setting UNICODE_GLYPHS=y in makefile.unix). Removed the (1,1) offset between map and grid. Both map and grid are now in sync. Store object indexes instead of raw characters in env.map so that players can change charsets and have the display update immediately. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1552 c06c8d41-db1a-0410-9941-cceddc491573
* Removed obsolete ALLOW_DESTROY_ITEM_COMMAND.dshaligram2007-05-121-4/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1469 c06c8d41-db1a-0410-9941-cceddc491573
* Allow Mac users to double-click to launch Crawl:dshaligram2007-05-041-0/+1
| | | | | | | | | - Use argv[0] to figure out where Crawl lives and where to find data files. The Mac Finder sets the working directory to / and the full path to the executable is available in argv[0] when the user double-clicks. - Converted some of the old char*s to std::string. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1407 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed trunk build for DOS and Windows. DOS and Windows builds use a SQLite db,dshaligram2007-04-221-2/+2
| | | | | | | | | | with a dbm-like wrapper so database.cc builds unchanged. Added SQLite to the source tree. Only DOS and Windows builds use it at the moment, but it can be added to Unix builds easily (and will be added automatically if a suitable db.h or ndbm.h is not found). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1342 c06c8d41-db1a-0410-9941-cceddc491573
* Refix build for Mac OS.dshaligram2007-04-201-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1339 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed source to build on Linux. Should still build on Mac OS, but this isdshaligram2007-04-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | untested. Will probably not build out-of-the-box on other BSDs (we need an autoconf script to use the right dbm headers). DOS and Windows builds are still broken pending adding Berkeley DB 1.x sources to the Crawl tree, which I'll probably do sometime tomorrow. Renamed descriptions.txt -> descript.txt to fit into DOS filename limits. The descript.txt -> descript.db conversion is now performed automatically by Crawl on startup if descript.txt is newer than descript.db (or descript.db does not exist). descript.db is saved in the save directory which is a convenient directory that is guaranteed writable by Crawl. The makedb.pl script is no longer necessary (and is unreliable anyway, because it's easy to have multiple dbm versions with incompatible db formats and have the installed Perl link with one while Crawl uses the other, leading to nasty segfaults). Some .des file changes (Erik). Deep elf sorcerers are M_EVIL. Ghosts get mephitic cloud. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1337 c06c8d41-db1a-0410-9941-cceddc491573
* Tweaked CLUA_BINDINGS so that the only thing it controls is running userdshaligram2007-04-141-1/+7
| | | | | | scripts. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1309 c06c8d41-db1a-0410-9941-cceddc491573
* Added #ifdef to allow compatibility with the old -macro <file> option. Thisdshaligram2007-04-021-0/+4
| | | | | | | option is restricted to dgamelaunch because it has security issues if used with the traditional multiuser setuid/setgid install. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1187 c06c8d41-db1a-0410-9941-cceddc491573
* Added DGL_NAMED_MACRO_FILE option to make life easier for dgamelaunch to keepdshaligram2007-04-011-0/+2
| | | | | | user macro files distinct (paxed). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1168 c06c8d41-db1a-0410-9941-cceddc491573
* Applied whereis patch from crawl.akrasiac.org (tracks where the player is indshaligram2007-03-251-5/+9
| | | | | | | | the dungeon). All dgamelaunch patches are conditionalised by DGL_foo #ifdefs. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1096 c06c8d41-db1a-0410-9941-cceddc491573
* Merged in crawl.akrasiac.org patches (simple messaging, milestones). These takedshaligram2007-03-251-5/+14
| | | | | | | | | | | | | effect only if compiled with -DDGAMELAUNCH. Simple messaging: interacts with dgamelaunch's messaging facility allowing viewers to send messages to the player. Milestones: Writes a milestones.txt file (in xlogfile format) for things like the player killing uniques, reaching the end of a dungeon branch, etc. (similar to notes). milestones.txt is used for game announcements by an IRC bot. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1095 c06c8d41-db1a-0410-9941-cceddc491573
* New key=value logfile format as proposed by Shawn Moore. This is more verbosedshaligram2007-03-081-14/+25
| | | | | | | | | | | | | | | | | | | | | than the old format by about 2x, but is more maintainable and comprehensible. Removed support for parsing scorefiles/logfiles older than 4.0 beta 26. Added shim to make 0.1.7 logfiles compatible with 0.2 Using the -scorefile option alone (no -scores, -tscores, etc.) causes Crawl to read in the existing scorefile/logfile and write it out to stdout in the new format. Ghouls get claw damage messages in unarmed combat. Plain oozes lose acid damage attacks (added inadvertently). Prompt the user when trying to displace a friendly over water (the old fix was to simply say "The foo resists"). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@994 c06c8d41-db1a-0410-9941-cceddc491573
* Removed USE_NEW_RANDOM, USE_MACROS.dshaligram2007-01-251-9/+0
| | | | | | | | | | | | | Removed DOS_TERM, PLAIN_TERM special casery - all platforms get PLAIN_TERM. Better end-of-greedy-explore reporting for items on traps (Erik). Cleaned up find_travel_pos - moved guts of travel pathfinding to travel_pathfind class. Miscellaneous other stuff. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@882 c06c8d41-db1a-0410-9941-cceddc491573
* Handle morgue_dir option better (create dir if it doesn't exist), updateddshaligram2007-01-111-4/+8
| | | | | | | | | makefile.unix to copy docs to the data directory for make install. Added SAVEDIR variable to the makefile so the user doesn't need to edit AppHdr.h for SAVE_DIR_PATH. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@831 c06c8d41-db1a-0410-9941-cceddc491573
* Handle SIGHUP. Could use improvement, but it's a start.dshaligram2006-12-191-0/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@673 c06c8d41-db1a-0410-9941-cceddc491573
* Set native eol on CREDITS and INSTALL, updated CREDITS.dshaligram2006-12-181-13/+21
| | | | | | | | Fixed Nemelex altar macro in crawl_macros.txt - reported on SF. Added a little hack for Crawl running in dgamelaunch so ttyplay isn't lost. Reduce the --more-- overdose on end-of-game. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@666 c06c8d41-db1a-0410-9941-cceddc491573
* Removed SHORT_FILE_NAMES for Windows builds.dshaligram2006-12-141-2/+1
| | | | | | | Fixed poisoned needles not stacking correctly. Allow character names to end with digits on multiuser systems. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@628 c06c8d41-db1a-0410-9941-cceddc491573
* Tweaked stash-tracker so that greedy explore works in Pandemonium.dshaligram2006-12-121-0/+11
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@621 c06c8d41-db1a-0410-9941-cceddc491573
* *Breaks save compatibility* - changed monster flags to long, added "god" ↵dshaligram2006-12-071-6/+0
| | | | | | | | | | | field for future fun. dungeon.cc cleanup and rework to support floating vaults. Updated levcomp to support the float orientation. coord_def now has a constructor. USE_RIVERS and USE_NEW_UNRANDS are no longer conditional. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@585 c06c8d41-db1a-0410-9941-cceddc491573
* [1597293] Preliminary greedy-explore, parked on Ctrl-I. We can (re)move it ↵dshaligram2006-12-011-4/+0
| | | | | | | | if necessary. Stash-tracking is no longer #ifdef conditionalised. I'm not aware of anybody who compiles without it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@538 c06c8d41-db1a-0410-9941-cceddc491573