summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_travel.cc
Commit message (Collapse)AuthorAgeFilesLines
* Improve view.find_deepest_explored().elliptic2014-03-281-0/+2
| | | | It now returns 0 rather than 1 if the player hasn't seen the branch yet.
* Start using -Wredundant-decls; fix all the instances I getSamuel Bronson2013-12-121-0/+1
| | | | | That is, unless you count the ones in ncurses' headers, which I can't do anything except suppress.
* Use std namespace.Raphael Langella2012-08-261-2/+2
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-4/+4
|
* Remove #define LOS_MAX_RADIUSAdam Borowski2012-06-241-1/+1
| | | | | | | Having both it and LOS_RADIUS is misleading, especially as they're arbitrarily used. This distinction doesn't make sense anyway, as any LOS changes need to be done at runtime, only the max matters during compilation.
* Ignore player swimming etc for connectivity checks.Neil Moore2012-01-041-1/+1
| | | | | | | | | | | | | | The dungeon should not arrange itself to suit the player's abilities. Besides this general philosophical objection, there are a few actual bugs caused by this behaviour: * Entering a vaults level in bat form (which cannot open doors) causes a level generation failure. * travel_avoid_terrain = shallow_water can cause vaults to be vetoed. * Permanent flight or levitation could allow item shifting to push an item (even a critical item) into lava or deep water while trying to save it. Fixes #4722.
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-4/+4
| | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* Fix travel.find_deepest_explored pegging CPU if used with a bad branch name ↵Darshan Shaligram2010-09-041-1/+3
| | | | (by).
* allow the serpent of hell to spawn in any hell branchJesse Luehrs2010-09-041-0/+9
| | | | | it's guaranteed (well, sort of) to spawn in exactly one hell end, and its color/spellbook/resists are customized for that hell branch.
* In autofight.lua, check for traversable features.Johanna Ploog2010-02-271-0/+9
|
* set_exclude/del_exclude lua bindings.Robert Vollmert2009-11-121-0/+54