summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-util.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove stuffNicholas Feinberg2014-07-291-0/+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!
* Fix debug compilationNicholas Feinberg2014-07-271-1/+1
|
* Allow toggling monster speech diagnostics in &^QNeil Moore2014-07-081-0/+3
| | | | | This is currently predicated on DEBUG_MONSPEAK, since all the relevant messages are.
* Chance function(void) to function()reaverb2014-05-241-1/+1
|
* Replace `mpr(s, ch)` with `mprf(ch, s)`Adam Borowski2013-11-291-3/+3
| | | | | | | | | 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.
* Allow setting negative or zero base stats with &@ (#7761)Neil Moore2013-11-201-3/+3
| | | | | | You can still set them to any value that fits in an int8_t [-128, 127]. The *modified* stat can never exceed 72, but there is no such cap on the low end.
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-3/+3
|
* Fix a (marshalled!) infinite leak in the Abyss.Adam Borowski2013-10-241-1/+1
| | | | For added insult, nothing used that list anymore.
* Put the Generating_Level global into crawl_state.Adam Borowski2013-10-031-1/+1
| | | | Also, drop the caps.
* Cancel an american speling.Adam Borowski2013-08-241-1/+1
| | | | | | Looks like, unlike "target[t]ing" where a single t is used by many brits and even some aussies, "cancel[l]ing" has double l even for a good deal of americans.
* Add MSG_OK when canceling for various promptsPekka Lampila2013-06-101-1/+2
| | | | | Also in a couple of cases add other messages. The goal here is to always print something when a prompt is dealt with.
* Reverse the argument of get_monster_by_name().Adam Borowski2013-06-091-1/+1
| | | | | | The default, substring match, was totally unintuitive and broken. Only one place is actually changed, something about shapeshifters.
* Also list subvault names when listing vault info in wizmodeDracoOmega2013-03-171-2/+17
|
* A basic interface for manually togging dprf quietness.Adam Borowski2013-01-101-1/+60
|
* Indentation fixes.Adam Borowski2012-12-051-12/+12
|
* Increase woefully short buffer for &M and others.Adam Borowski2012-11-131-1/+1
| | | | | This should be a std::string probably; for now, 1024 bytes should be enough for anyone.
* 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.
* Note the vault and subvaults being placed when a crash happens.Adam Borowski2012-10-151-0/+9
|
* Fix two crasher bugs when walking long enough in the Abyss.Adam Borowski2012-09-221-22/+3
| | | | | | | | | | | _you_vault_list would overflow once you found 256 vaults that got shifted away. env.props["level_{vaults,extra}_key"] could potentially overflow as well, although the latter would require running with an amulet of statis on as abyssal "new area" teleports cleared that prop. This commit also fixes Pan vault info keeping only the last level generated; Pan char dumps get quite spammy now. Perhaps refcounting them would be better?
* Allow "%"PRI to build in C++11 mode.Adam Borowski2012-08-281-2/+2
| | | | | | | | | | | This is a misdesign in the standard, the committee is debating whether it's a defect or not, we'll know the result in ten years or so. In the meantime, gcc-4.8 and clang(version?) added a fix so formerly legal code compiles (but with a warning...). This fix is not yet in gcc-4.7 nor clang-3.1, and since failing to build on compilers that happen in the wild is a bad idea, let's kludge it around with spaces. More info: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52538
* Use std namespace.Raphael Langella2012-08-261-10/+9
| | | | | | | | | | | | | 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.
* Remove parentheses around return (simple_function_call).Adam Borowski2012-07-051-1/+1
| | | | For way too paranoid and underinclusive values of "simple".
* Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-5/+5
|
* Make feature renames local to a vault rather than the whole level.Adam Borowski2012-07-051-1/+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".
* Use mid rather than mindex for constriction.Neil Moore2012-07-041-29/+26
| | | | | | | | | | | | actor::constricting is now a pointer to a map from mids to durations; if the actor is not constricting anything, we use a NULL pointer rather than an empty map to save memory. Save compatibility: Because constrictees might be loaded after constrictors (and vice versa), we cannot convert the old constriction arrays (which use mindex) until all the monsters have been loaded. Instead, save the constriction data temporarily, and create the maps at the end of tag_read_level_monsters().
* Remove dur_been_constricted, merge some duplicate code.Neil Moore2012-07-041-3/+0
| | | | | | | | | | dur_been_constricted was used only for a single debugging message. Remove it and the associated accum_been_constricted(). Do not yet change the save file format, as more significant changes that will require a minor version bump are coming soon Also move accum_has_constricted() from player and monster to actor; the code was the same, modulo some bugs in the monster version.
* Make an error message less spammy and more informative.Adam Borowski2012-06-271-7/+0
|
* Cut down on transitively including directn.hAdam Borowski2012-06-201-0/+1
| | | | | It's a big header, hardly ever needed, yet it was pulled even for low-level files that don't deal with the game itself like lib${UI}.cc
* Remove a good deal of header inclusion.Adam Borowski2012-05-231-1/+0
| | | | | | | | | 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.
* Show absdepth0 on &^E.Adam Borowski2012-04-061-2/+2
|
* Add a new skill_from_name function.Raphael Langella2012-03-091-13/+10
| | | | Better than hijacking debug_prompt_for_skill.
* added a wizard mode function, wizard_file_input(), that takes a morgue file ↵nfogravity2012-03-081-12/+12
| | | | by name and changes skill levels and base stats to the morgue file's levels
* Whitespace fix.Neil Moore2012-01-021-1/+1
|
* Replace a hardcoded constant in an (approximately) million places.Adam Borowski2011-12-271-1/+1
|
* Include monster/player constriction info in crash dumps.Neil Moore2011-12-231-0/+45
|
* Change seen_context from strings to enums, slightly untangle it.Adam Borowski2011-12-051-2/+2
| | | | | | | | | | It's still a terrible mess. I didn't manage to understand it well enough so all[1] functionality is preserved, at the cost of clarity. I unified some values that are functionally identical, but not yet all. [1]. The context is reported only as a number in crash dumps, a minor regression but 1. saves speed, 2. it'd be a matter of copying the enum names if someone actually needs this.
* Remove a number of useless is_invalid_skill() checks.Adam Borowski2011-11-231-3/+0
| | | | | There's no point in ever having gaps in this enum -- even if a skill is removed, it is still valid until a save compat break.
* Merge branch 'master' into unified_combat_controlRobert Burnham2011-11-161-3/+3
|\ | | | | | | | | | | | | | | | | | | Conflicts: crawl-ref/source/fight.cc crawl-ref/source/food.cc crawl-ref/source/libutil.cc crawl-ref/source/melee_attack.h crawl-ref/source/mon-stuff.cc crawl-ref/source/spl-damage.cc
* | Merge branch 'master' into unified_combat_controlRobert Burnham2011-10-251-12/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: crawl-ref/source/Makefile.obj crawl-ref/source/dbg-scan.cc crawl-ref/source/decks.cc crawl-ref/source/describe.cc crawl-ref/source/directn.cc crawl-ref/source/evoke.cc crawl-ref/source/fight.cc crawl-ref/source/fight.h crawl-ref/source/ghost.cc crawl-ref/source/ghost.h crawl-ref/source/item_use.cc crawl-ref/source/items.cc crawl-ref/source/map_knowledge.cc crawl-ref/source/melee_attack.h crawl-ref/source/mon-abil.cc crawl-ref/source/mon-act.cc crawl-ref/source/mon-stuff.cc crawl-ref/source/monster.cc crawl-ref/source/monster.h crawl-ref/source/player.cc crawl-ref/source/player.h crawl-ref/source/shopping.cc crawl-ref/source/spl-damage.cc crawl-ref/source/spl-summoning.cc crawl-ref/source/spl-transloc.cc crawl-ref/source/stairs.cc crawl-ref/source/stuff.cc crawl-ref/source/tags.cc crawl-ref/source/traps.cc crawl-ref/source/xom.cc
| * Get rid of strlwr().Adam Borowski2011-09-071-11/+7
| | | | | | | | | | | | Besides being non-standard and present only on some platforms, it cannot be extended to Unicode as some characters expand or contract while being upper/lowercased.
| * cppcheck: fix inefficient checking for emptiness.Adam Borowski2011-07-051-1/+1
| | | | | | | | | | On some STL structures size() is slow. I did not bother limitting sed, so innocent bystanders got pulled into the machine, but there's no loss.
* | Merge branch 'master' into unified_combat_controlRobert Burnham2011-04-261-5/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: crawl-ref/source/actor.cc crawl-ref/source/delay.cc crawl-ref/source/directn.cc crawl-ref/source/directn.h crawl-ref/source/fight.cc crawl-ref/source/files.cc crawl-ref/source/mon-act.cc crawl-ref/source/monster.cc crawl-ref/source/mpr.h crawl-ref/source/player.cc crawl-ref/source/shopping.cc
| * Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-5/+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.
* | Don't capitalize error, diagnostic and wizard messages.Adam Borowski2011-04-181-4/+4
|/ | | | | | It's an ugly hack currently, to 1. not make the combat merge even nastier than it already will be, 2. not do the work twice when we'll probably overhaul mprf().
* Dump extra vaults properly.Vsevolod Kozlov2010-12-151-24/+19
| | | | | | env.properties[LEVEL_EXTRAS_KEY] is now only used for extra vaults, which are saved into a hash table rather than a vector. Modify dbg-util.cc accordingly so it dumps out the right data.
* Convert env.level_layout_type into std::set<std::string> level_layout_types.Vsevolod Kozlov2010-12-141-1/+2
| | | | | This lets one layout specify multiple layout types, which can be useful in combination with layout_* vault tags. Nothing uses this as of yet.
* Ctrl-mouseclick asks for quantity for drop/pickup.Johanna Ploog2010-12-051-26/+0
| | | | I decided to reuse debug_prompt_for_int() for this purpose.
* Add a quick and dirty debugging function for where dprf() is of no use.Adam Borowski2010-11-011-0/+20
| | | | | | | I use a similar include, but there's no reason to not have this properly as a part of the project -- as others can benefit from it as well. Something like this is needed for times such as debugging the save browser or the text display itself.
* Replace int by skill_type whenever possibleRaphael Langella2010-10-271-8/+9
|
* Massive spacing fixes: "( spaces after parentheses )".Adam Borowski2010-10-151-4/+4
| | | | | | I did review it manually to find places where they made sense (like some tables), but for a massive sed job like this there might be places that I missed.