From: david Date: Wed, 13 Feb 2002 12:14:01 +0000 (+0000) Subject: Replaced some cout's with SG_LOG (fixes namespace problem with X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dd629da8d39f6b6366a919d646caa7d5d876a171;p=simgear.git Replaced some cout's with SG_LOG (fixes namespace problem with ANSI-conformant compilers). --- diff --git a/simgear/sky/cloud.cxx b/simgear/sky/cloud.cxx index 47be6350..a93c0c62 100644 --- a/simgear/sky/cloud.cxx +++ b/simgear/sky/cloud.cxx @@ -27,6 +27,7 @@ #include #include #include +#include #include "cloud.hxx" @@ -213,7 +214,8 @@ bool SGCloudLayer::reposition( sgVec3 p, sgVec3 up, double lon, double lat, base[0] -= (int)base[0]; } else { base[0] = 0.0; - cout << "Error: base = " << base[0] << "," << base[1] << endl; + SG_LOG(SG_ASTRO, SG_ALERT, + "Error: base = " << base[0] << "," << base[1]); } base[1] += yoff; @@ -225,7 +227,8 @@ bool SGCloudLayer::reposition( sgVec3 p, sgVec3 up, double lon, double lat, base[1] -= (int)base[1]; } else { base[1] = 0.0; - cout << "Error: base = " << base[0] << "," << base[1] << endl; + SG_LOG(SG_ASTRO, SG_ALERT, + "Error: base = " << base[0] << "," << base[1]); } // cout << "base = " << base[0] << "," << base[1] << endl;