summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-20 20:12:49 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-20 20:30:43 +0100
commit679a19dda682726b0cfe0d13e96aef43987f9f12 (patch)
tree6c4eadc03fe0b383e67a09977d3fdec408324249 /crawl-ref/source/spells4.cc
parentab23b2d884b7eafc8bd17baa818102f14d165e5e (diff)
downloadcrawl-ref-679a19dda682726b0cfe0d13e96aef43987f9f12.tar.gz
crawl-ref-679a19dda682726b0cfe0d13e96aef43987f9f12.zip
Replace long debug message calls with dprf(), except for cases where a dumb compiler
could call unnecessary functions. For paranoia, I left even any uses of std::string.
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc
index 992b768ed5..6819599ee5 100644
--- a/crawl-ref/source/spells4.cc
+++ b/crawl-ref/source/spells4.cc
@@ -575,10 +575,7 @@ static int _ignite_poison_monsters(coord_def where, int pow, int, actor *)
damage = mons_adjust_flavoured(mon, beam, damage);
simple_monster_message(mon, " seems to burn from within!");
-#if DEBUG_DIAGNOSTICS
- mprf(MSGCH_DIAGNOSTICS, "Dice: %dd%d; Damage: %d",
- dam_dice.num, dam_dice.size, damage);
-#endif
+ dprf("Dice: %dd%d; Damage: %d", dam_dice.num, dam_dice.size, damage);
if (!_player_hurt_monster(*mon, damage))
{
@@ -820,9 +817,7 @@ void cast_discharge(int pow)
dam = apply_random_around_square(_discharge_monsters, you.pos(),
true, pow, num_targs);
-#if DEBUG_DIAGNOSTICS
- mprf(MSGCH_DIAGNOSTICS, "Arcs: %d Damage: %d", num_targs, dam);
-#endif
+ dprf("Arcs: %d Damage: %d", num_targs, dam);
if (dam == 0)
{