Output message tweaks.
This commit is contained in:
parent
a7cf4f0a53
commit
3786e0665c
2 changed files with 12 additions and 5 deletions
|
@ -31,7 +31,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef __sun__
|
#if defined ( __sun__ )
|
||||||
extern "C" void *memmove(void *, const void *, size_t);
|
extern "C" void *memmove(void *, const void *, size_t);
|
||||||
extern "C" void *memset(void *, int, size_t);
|
extern "C" void *memset(void *, int, size_t);
|
||||||
#endif
|
#endif
|
||||||
|
@ -39,6 +39,7 @@ extern "C" void *memset(void *, int, size_t);
|
||||||
|
|
||||||
#include <deque> // STL double ended queue
|
#include <deque> // STL double ended queue
|
||||||
#include <list> // STL list
|
#include <list> // STL list
|
||||||
|
|
||||||
#ifdef NEEDNAMESPACESTD
|
#ifdef NEEDNAMESPACESTD
|
||||||
using namespace std;
|
using namespace std;
|
||||||
#endif
|
#endif
|
||||||
|
@ -124,6 +125,9 @@ extern fgEVENT_MGR global_events;
|
||||||
|
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.6 1998/07/24 21:42:25 curt
|
||||||
|
// Output message tweaks.
|
||||||
|
//
|
||||||
// Revision 1.5 1998/07/13 21:02:07 curt
|
// Revision 1.5 1998/07/13 21:02:07 curt
|
||||||
// Wrote access functions for current fgOPTIONS.
|
// Wrote access functions for current fgOPTIONS.
|
||||||
//
|
//
|
||||||
|
|
|
@ -173,8 +173,8 @@ void fgLIGHT::UpdateAdjFog( void ) {
|
||||||
rotation -= FG_2PI;
|
rotation -= FG_2PI;
|
||||||
}
|
}
|
||||||
rotation *= RAD_TO_DEG;
|
rotation *= RAD_TO_DEG;
|
||||||
fgPrintf( FG_EVENT, FG_INFO,
|
// fgPrintf( FG_EVENT, FG_INFO,
|
||||||
" View to sun difference in degrees = %.2f\n", rotation);
|
// " View to sun difference in degrees = %.2f\n", rotation);
|
||||||
|
|
||||||
// next check if we are in a sunset/sunrise situation
|
// next check if we are in a sunset/sunrise situation
|
||||||
sun_angle_deg = sun_angle * RAD_TO_DEG;
|
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[0] = param1[0] * (180.0 - rotation) / 180.0;
|
||||||
param2[1] = param1[1] * (180.0 - rotation) / 180.0;
|
param2[1] = param1[1] * (180.0 - rotation) / 180.0;
|
||||||
param2[2] = param1[2] * (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 {
|
} else {
|
||||||
param2[0] = param1[0] * (rotation - 180.0) / 180.0;
|
param2[0] = param1[0] * (rotation - 180.0) / 180.0;
|
||||||
param2[1] = param1[1] * (rotation - 180.0) / 180.0;
|
param2[1] = param1[1] * (rotation - 180.0) / 180.0;
|
||||||
param2[2] = param1[2] * (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];
|
adj_fog_color[0] = fog_color[0] + param2[0];
|
||||||
|
@ -227,6 +227,9 @@ void fgLightUpdate ( void ) {
|
||||||
|
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.13 1998/07/24 21:42:26 curt
|
||||||
|
// Output message tweaks.
|
||||||
|
//
|
||||||
// Revision 1.12 1998/07/22 21:45:38 curt
|
// Revision 1.12 1998/07/22 21:45:38 curt
|
||||||
// fg_time.cxx: Removed call to ctime() in a printf() which should be harmless
|
// fg_time.cxx: Removed call to ctime() in a printf() which should be harmless
|
||||||
// but seems to be triggering a bug.
|
// but seems to be triggering a bug.
|
||||||
|
|
Loading…
Reference in a new issue