summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-asrt.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove stuffNicholas Feinberg2014-07-291-1/+1
| | | | | | | .cc, moving its contents into the new stepdown.cc and strings.cc. (The latter also got many donations from libutil.h.) Down with stuff! Up the new flesh!
* Remove base max MP adjustment.Neil Moore2014-07-261-2/+2
| | | | | Only the 2 MP tutorial bonus used it; combine that with the max MP decrease from self-restoration and device recharging.
* Further rename you.mp_max_*.Neil Moore2014-07-261-1/+1
| | | | Because mp_max_temp is in fact permanent.
* Rename player::[hm]p_max_{perm,temp} (reaverb)Neil Moore2014-07-261-2/+2
| | | | | To reflect that they are adjustments, not actual mhp values. Also change one reference to use player_rotted instead.
* Fix temporary MP modifier in debug dumps.Neil Moore2014-07-261-1/+1
|
* Don't use nuke to describe the abyss destorying all terrain.reaverb2014-06-051-2/+2
|
* Use you.innate_mutation rather than you.innate_mutationsreaverb2014-05-141-2/+2
| | | | Ditto for you.temp_mutation.
* Formatting fixes (add braces).Neil Moore2014-05-121-0/+4
| | | | This fixes all the instances caught by unbrace.
* Change WebTiles crash handling to work by parsing stderr.Pekka Lampila2014-03-021-13/+0
|
* Do tiles.shutdown() earlier when handling a crash.Pekka Lampila2014-03-021-9/+16
| | | | | Trying to avoid socket being left open, while still sending assert message and crash log file name to the WebTiles server.
* Include assert message and crash log in WebTiles exit dialog.Pekka Lampila2014-02-051-0/+7
|
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-1/+0
| | | | | Sometimes, they're there to emphasize a break between two sections of code, which is good. In a majority of cases, though, they're just inconsistent.
* Replace `mpr(s, ch)` with `mprf(ch, s)`Adam Borowski2013-11-291-4/+1
| | | | | | | | | Also simplify quite a few cases. It turns out in >90% cases of non-literals the argument had .c_str(), which meant it was pointlessly malloc()ed and converted from and to std::string. I believe a sprintf is faster, so even the argument of miniscule speed-up doesn't apply.
* Spam about the reason GDB is disabled.Adam Borowski2013-11-171-7/+3
|
* Don't attach gdb in debug builds unless --gdb is given on cmdline.Adam Borowski2013-11-051-3/+7
|
* Clear some buffers prominent in crash tracesSamuel Bronson2013-11-021-3/+5
| | | | This lets GDB avoid having to print out all that extraneous garbage.
* Attach and run gdb during crashes.Adam Borowski2013-11-021-1/+4
| | | | | | Its usefulness varies depending on existence of debug info, although in every case I got at least one more symbol resolved than without it. Only unstripped builds are fun, of course.
* Include abyssal level in assertion dumps.Neil Moore2013-10-311-2/+4
|
* Put the Generating_Level global into crawl_state.Adam Borowski2013-10-031-2/+1
| | | | Also, drop the caps.
* If a crash happens during map generation, dump the whole grd.Adam Borowski2013-10-031-2/+12
| | | | Rather than just some useless screenshot, usually from (0, 0).
* Fix a warning.Adam Borowski2013-09-221-1/+1
|
* Don't use enum numbers for mutations in crash dumps.Adam Borowski2013-09-091-7/+29
| | | | | | Also, include temporary ones. Also, don't call all innates "demon".
* Brace fixes.Adam Borowski2013-06-081-1/+2
|
* Don't use "" where a null works better.Adam Borowski2013-06-081-1/+1
|
* Add an ASSERTM macro for more verbose ASSERTsPete Hurst2013-05-231-2/+21
| | | | | | | | The syntax is ASSERTM(condition, text, args...) Where text is the format string for an additional message to be printed after the condition and file/line#, and args are additional arguments with which to format the string.
* Move NORETURN in front of static (xFleury)Pete Hurst2013-05-191-1/+1
|
* Fix directory for SDL include in MSVC (xFleury)Pete Hurst2013-05-191-1/+5
| | | | | It's not known why but the include path for SDL needs to be different for SDL in MSVC.
* Include debug.h earlier.Adam Borowski2013-04-261-2/+0
| | | | | Via externs.h -> bitary.h, it was effectively included by everything anyway, and this way simplifies include chains.
* Fix a possible infinite loop when dumping.Adam Borowski2013-04-091-1/+1
| | | | | | | | If all messages in the buffer are not "dumpworthy" (MSGCH_EQUIPMENT, MSGCH_DIAGNOSTICS or MSGCH_TUTORIAL), it'll spin forever. This commit also removes such racism if the dump happens during a crash: we do want to see debug output.
* Dump the abyssal state during crash.Adam Borowski2013-03-231-0/+15
|
* Simplify handling of version info.Adam Borowski2013-03-141-9/+5
| | | | | They're static strings, there's no point in having functions just to malloc and pass them around.
* Add spacing fix.David Lawrence Ramsey2013-01-261-1/+1
|
* Dump the Webtiles message buffer when crashing.Florian Diebold2012-11-011-0/+5
|
* Remove unnecessary includes from header files.Jay3.14152012-10-231-0/+1
| | | | | | | | | | For most header files, this only saves on having to recompile a small number of source files, but there are also a few headers where small changes would now take significantly less time. This is most obvious for the Tiles build for which the dependencies have been greatly reduced, so that the only additional includes when compared to console are strictly library or tile related.
* Fix stats being capped below at zero in situations where they shouldn't be.elliptic2012-09-201-2/+3
| | | | | | | Specifically, for checking whether a stat is drained and for output. You can now get the uncapped stats with you.strength(false), you.intel(false), and you.dex(false).
* Use std namespace.Raphael Langella2012-08-261-18/+17
| | | | | | | | | | | | | 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.
* Add a milestone for the first time each branch is exited.elliptic2012-08-221-1/+1
| | | | | | Only applies to branches with more than one level, so it shouldn't be too many milestones. In order to get oplace to work correctly, the report_origin_level argument to mark_milestone() was made slightly more flexible.
* Massive style fix (braces, indentation, etc.)Neil Moore2012-08-011-0/+2
|
* Make feature renames local to a vault rather than the whole level.Adam Borowski2012-07-051-2/+1
| | | | | | | | For technical reasons (vault_placement), subvaults use renaming data of the top-level vault, this might be changed one day; that'd require a bit more writing but would allow different renames in different subvaults. TODO: "line of fire blocked by XXX".
* Remove a good deal of header inclusion.Adam Borowski2012-05-231-2/+1
| | | | | | | | | These accumulate but never get removed; no wonder compilation times keep rising. The includes.sh script has lots of false negatives (and positives...), and can't check .h files which cause the biggest slowdown, it'd be nice to run multidelta on those somehow.
* Drop an useless property.Adam Borowski2012-05-051-11/+0
| | | | | | There is no way for a ready level to ever move to a different place (ok, save from ./crawl --edit-save), and now even changing a branch's settings won't do this.
* An unfourgivable typou.Adam Borowski2012-04-261-1/+1
| | | | Silly Brits, silly Americans.
* Merge branch 'master' into portal_branchesAdam Borowski2012-04-251-4/+1
|\
| * Remove the now-unused code for emergency saves.Adam Borowski2012-04-141-4/+1
| | | | | | | | | | If we want them back for assertions, it'd be far better to save _before_ going into the crash handler.
* | Merge branch 'master' into portal_branchesAdam Borowski2012-03-261-2/+1
|\| | | | | | | | | This includes fixes for 64834896234968 places in master that add new uses of LEVEL_FOO and so on.
| * Fix a misalignment in crash dumps.Adam Borowski2012-03-101-1/+1
| |
| * Merge away an one-function-wonder header file.Adam Borowski2012-03-101-1/+0
| | | | | | | | It had no corresponding .cc, too.
* | Use branch depth rather than absolute depth as the authoritative one.Adam Borowski2012-01-031-2/+2
| |
* | Merge branch 'master' into portal_branchesAdam Borowski2011-12-281-11/+30
|\|
| * Threading support.Adam Borowski2011-12-271-0/+2
| | | | | | | | | | | | | | | | | | Since Windows doesn't support pthreads without an external library, I used a mess of #defines. Also, some of the #defines are not needed; I copied them from an earlier project. Detached threads and cond variables are not used at the moment, if you feel bad about dormant code we can axe them.