From 3786e0665c6e9013dbdbc5012a94b6baed53914b Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 24 Jul 1998 21:42:25 +0000 Subject: [PATCH] Output message tweaks. --- Time/event.hxx | 6 +++++- Time/light.cxx | 11 +++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Time/event.hxx b/Time/event.hxx index 66c1c3738..c98db9fdd 100644 --- a/Time/event.hxx +++ b/Time/event.hxx @@ -31,7 +31,7 @@ #endif -#ifdef __sun__ +#if defined ( __sun__ ) extern "C" void *memmove(void *, const void *, size_t); extern "C" void *memset(void *, int, size_t); #endif @@ -39,6 +39,7 @@ extern "C" void *memset(void *, int, size_t); #include // STL double ended queue #include // STL list + #ifdef NEEDNAMESPACESTD using namespace std; #endif @@ -124,6 +125,9 @@ extern fgEVENT_MGR global_events; // $Log$ +// Revision 1.6 1998/07/24 21:42:25 curt +// Output message tweaks. +// // Revision 1.5 1998/07/13 21:02:07 curt // Wrote access functions for current fgOPTIONS. // diff --git a/Time/light.cxx b/Time/light.cxx index 2a6364bdd..73a7aa20b 100644 --- a/Time/light.cxx +++ b/Time/light.cxx @@ -173,8 +173,8 @@ void fgLIGHT::UpdateAdjFog( void ) { rotation -= FG_2PI; } rotation *= RAD_TO_DEG; - fgPrintf( FG_EVENT, FG_INFO, - " View to sun difference in degrees = %.2f\n", rotation); + // fgPrintf( FG_EVENT, FG_INFO, + // " View to sun difference in degrees = %.2f\n", rotation); // next check if we are in a sunset/sunrise situation sun_angle_deg = sun_angle * RAD_TO_DEG; @@ -191,12 +191,12 @@ void fgLIGHT::UpdateAdjFog( void ) { param2[0] = param1[0] * (180.0 - rotation) / 180.0; param2[1] = param1[1] * (180.0 - rotation) / 180.0; param2[2] = param1[2] * (180.0 - rotation) / 180.0; - printf("param1[0] = %.2f param2[0] = %.2f\n", param1[0], param2[0]); + // printf("param1[0] = %.2f param2[0] = %.2f\n", param1[0], param2[0]); } else { param2[0] = param1[0] * (rotation - 180.0) / 180.0; param2[1] = param1[1] * (rotation - 180.0) / 180.0; param2[2] = param1[2] * (rotation - 180.0) / 180.0; - printf("param1[0] = %.2f param2[0] = %.2f\n", param1[0], param2[0]); + // printf("param1[0] = %.2f param2[0] = %.2f\n", param1[0], param2[0]); } adj_fog_color[0] = fog_color[0] + param2[0]; @@ -227,6 +227,9 @@ void fgLightUpdate ( void ) { // $Log$ +// Revision 1.13 1998/07/24 21:42:26 curt +// Output message tweaks. +// // Revision 1.12 1998/07/22 21:45:38 curt // fg_time.cxx: Removed call to ctime() in a printf() which should be harmless // but seems to be triggering a bug.