From 9d0f892b2e20c3e19d2cfe9ab286db2923c6c148 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 16 Aug 2001 15:50:15 +0000 Subject: [PATCH] be more consistent with notify warnings --- panda/src/express/clockObject.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/panda/src/express/clockObject.cxx b/panda/src/express/clockObject.cxx index 0024b0e032..e1f6e66614 100644 --- a/panda/src/express/clockObject.cxx +++ b/panda/src/express/clockObject.cxx @@ -52,13 +52,13 @@ ClockObject() { //////////////////////////////////////////////////////////////////// void ClockObject:: set_real_time(double time) { -#ifndef NDEBUG +#ifdef NOTIFY_DEBUG if (this == _global_clock) { express_cat.warning() << "Adjusting global clock's real time by " << time - get_real_time() << " seconds.\n"; } -#endif // NDEBUG +#endif // NOTIFY_DEBUG _start_time = _true_clock->get_real_time() - time; } @@ -72,11 +72,13 @@ set_real_time(double time) { //////////////////////////////////////////////////////////////////// void ClockObject:: set_frame_time(double time) { +#ifdef NOTIFY_DEBUG if (this == _global_clock) { express_cat.warning() << "Adjusting global clock's frame time by " << time - get_frame_time() << " seconds.\n"; } +#endif // NOTIFY_DEBUG _actual_frame_time = time; _reported_frame_time = time; } @@ -90,11 +92,13 @@ set_frame_time(double time) { //////////////////////////////////////////////////////////////////// void ClockObject:: set_frame_count(int frame_count) { +#ifdef NOTIFY_DEBUG if (this == _global_clock) { express_cat.warning() << "Adjusting global clock's frame count by " << frame_count - get_frame_count() << " frames.\n"; } +#endif // NOTIFY_DEBUG _frame_count = frame_count; }