On Wed, Sep 17, 2003 at 11:45:14AM +0200, Erik Hofman wrote: > Thomas Arendsen Hein wrote: > >When trying to start "fgfs --airport=KEMT" I get: > > > >WARNING: ssgLoadAC: Failed to open > >'/fg_root/Aircraft/c172/Models/c172-dpm.ac/Aircraft/c172/Models/c172-dpm.ac' > >for reading > > > >with current SimGear/FlightGear CVS. > > > >The attached patch fixes the problem, since sgLoad3DModel expects > >fg_root as the first parameter, not the full path to the model. > > Thanks for the catch. I've put a fix in CVS.
When updating from CVS I got a conflict in AILocalTraffic.cxx, because I removed two obsolete lines in my patch which still are in CVS. The problem is, I forgot to attach my patch! So here is another one which removes these two lines. Thomas -- Email: [EMAIL PROTECTED] (at work: [EMAIL PROTECTED]) http://jtah.de/
Index: src/ATC/AILocalTraffic.cxx =================================================================== RCS file: /var/cvs/FlightGear-0.9/source/src/ATC/AILocalTraffic.cxx,v retrieving revision 1.21 diff -u -r1.21 AILocalTraffic.cxx --- src/ATC/AILocalTraffic.cxx 17 Sep 2003 09:44:37 -0000 1.21 +++ src/ATC/AILocalTraffic.cxx 18 Sep 2003 21:20:49 -0000 @@ -154,8 +154,6 @@ //cout << "FGAILocalTraffic.Init(...) called" << endl; // Hack alert - Hardwired path!! string planepath = "Aircraft/c172/Models/c172-dpm.ac"; - SGPath path = globals->get_fg_root(); - path.append(planepath); ssgBranch *model = sgLoad3DModel( globals->get_fg_root(), planepath.c_str(), globals->get_props(),
_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel