summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.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/stuff.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/stuff.cc')
-rw-r--r--crawl-ref/source/stuff.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc
index 2e55a337ab..ccff7125aa 100644
--- a/crawl-ref/source/stuff.cc
+++ b/crawl-ref/source/stuff.cc
@@ -221,10 +221,8 @@ static bool _tag_follower_at(const coord_def &pos)
fmenv->travel_path.clear();
fmenv->travel_target = MTRAV_NONE;
-#if DEBUG_DIAGNOSTICS
- mprf(MSGCH_DIAGNOSTICS, "%s is marked for following.",
+ dprf("%s is marked for following.",
fmenv->name(DESC_CAP_THE, true).c_str() );
-#endif
return (true);
}
@@ -905,10 +903,9 @@ void zap_los_monsters(bool items_also)
if (mon == NULL || mons_class_flag(mon->type, M_NO_EXP_GAIN))
continue;
-#ifdef DEBUG_DIAGNOSTICS
- mprf(MSGCH_DIAGNOSTICS, "Dismissing %s",
+ dprf("Dismissing %s",
mon->name(DESC_PLAIN, true).c_str() );
-#endif
+
// Do a hard reset so the monster's items will be discarded.
mon->flags |= MF_HARD_RESET;
// Do a silent, wizard-mode monster_die() just to be extra sure the