From 679a19dda682726b0cfe0d13e96aef43987f9f12 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Sun, 20 Dec 2009 20:12:49 +0100 Subject: 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. --- crawl-ref/source/stuff.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/stuff.cc') 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 -- cgit v1.2.3-54-g00ecf