Browse Source

be more consistent with notify warnings

David Rose 24 years ago
parent
commit
9d0f892b2e
1 changed files with 6 additions and 2 deletions
  1. 6 2
      panda/src/express/clockObject.cxx

+ 6 - 2
panda/src/express/clockObject.cxx

@@ -52,13 +52,13 @@ ClockObject() {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void ClockObject::
 void ClockObject::
 set_real_time(double time) {
 set_real_time(double time) {
-#ifndef NDEBUG
+#ifdef NOTIFY_DEBUG
   if (this == _global_clock) {
   if (this == _global_clock) {
     express_cat.warning()
     express_cat.warning()
       << "Adjusting global clock's real time by " << time - get_real_time()
       << "Adjusting global clock's real time by " << time - get_real_time()
       << " seconds.\n";
       << " seconds.\n";
   }
   }
-#endif  // NDEBUG
+#endif  // NOTIFY_DEBUG
   _start_time = _true_clock->get_real_time() - time;
   _start_time = _true_clock->get_real_time() - time;
 }
 }
 
 
@@ -72,11 +72,13 @@ set_real_time(double time) {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void ClockObject::
 void ClockObject::
 set_frame_time(double time) {
 set_frame_time(double time) {
+#ifdef NOTIFY_DEBUG
   if (this == _global_clock) {
   if (this == _global_clock) {
     express_cat.warning()
     express_cat.warning()
       << "Adjusting global clock's frame time by " << time - get_frame_time()
       << "Adjusting global clock's frame time by " << time - get_frame_time()
       << " seconds.\n";
       << " seconds.\n";
   }
   }
+#endif  // NOTIFY_DEBUG
   _actual_frame_time = time;
   _actual_frame_time = time;
   _reported_frame_time = time;
   _reported_frame_time = time;
 }
 }
@@ -90,11 +92,13 @@ set_frame_time(double time) {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void ClockObject::
 void ClockObject::
 set_frame_count(int frame_count) {
 set_frame_count(int frame_count) {
+#ifdef NOTIFY_DEBUG
   if (this == _global_clock) {
   if (this == _global_clock) {
     express_cat.warning()
     express_cat.warning()
       << "Adjusting global clock's frame count by " 
       << "Adjusting global clock's frame count by " 
       << frame_count - get_frame_count() << " frames.\n";
       << frame_count - get_frame_count() << " frames.\n";
   }
   }
+#endif  // NOTIFY_DEBUG
   _frame_count = frame_count;
   _frame_count = frame_count;
 }
 }