#include <Main/globals.hxx>
#include <Scenery/scenery.hxx>
#include <Time/light.hxx>
+#include <Objects/apt_signs.hxx>
#include <Objects/matlib.hxx>
#include <Objects/newmat.hxx>
#include <Objects/obj.hxx>
obj_trans -> addKid( custom_obj );
}
new_tile->addKid( obj_trans );
+ } else if ( token == "RWY_LIGHTS" ) {
+ double lon, lat, hdg, len, width;
+ string common, end1, end2;
+ in >> lon >> lat >> hdg >> len >> width
+ >> common >> end1 >> end2;
+ SG_LOG( SG_TERRAIN, SG_INFO, "token = " << token
+ << " pos = " << lon << ", " << lat
+ << " hdg = " << hdg
+ << " size = " << len << ", " << width
+ << " codes = " << common << " "
+ << end1 << " " << end2 );
} else {
SG_LOG( SG_TERRAIN, SG_ALERT,
"Unknown token " << token << " in "
if ( scenery.center == Point3D(0.0) ) {
// initializing
- cout << "initializing scenery current elevation ... " << endl;
+ cout << "initializing scenery current elevation ... " << endl;
sgdVec3 tmp_abs_view_pos;
- sgVec3 tmp_view_pos;
Point3D geod_pos = Point3D( longitude * SGD_DEGREES_TO_RADIANS,
latitude * SGD_DEGREES_TO_RADIANS,
// cout << "abs_view_pos = " << tmp_abs_view_pos << endl;
prep_ssg_nodes();
- sgSetVec3( tmp_view_pos, 0.0, 0.0, 0.0 );
+
double tmp_elev;
if ( fgCurrentElev(tmp_abs_view_pos, sc, &hit_list,
&tmp_elev, &scenery.cur_radius, scenery.cur_normal) )