Erik Hofman writes:
> That's a one liner:
>
> --- /home/erik/src/CVS/fgfs/FlightGear/src/Main/options.cxx Tue Feb
> 5 18:08:29 2002
> +++ options.cxx Fri Feb 8 11:07:09 2002
> @@ -674,7 +674,8 @@
> } else if ( arg.find( "--aero=" ) == 0 ) {
> fgSetString("/sim/aero", arg.substr(7));
> } else if ( arg.find( "--aircraft-dir=" ) == 0 ) {
> - fgSetString("/sim/aircraft-dir", arg.substr(15));
> + string aircraft_dir = globals->get_fg_root()+"/"+arg.substr(15);
> + fgSetString("/sim/aircraft-dir", aircraft_dir);
> } else if ( arg.find( "--model-hz=" ) == 0 ) {
> fgSetInt("/sim/model-hz", atoi(arg.substr(11)));
> } else if ( arg.find( "--speed=" ) == 0 ) {
Not quite -- we also need to deal with the case where it's set as a
property directly. I think it's better to make the change in the UIUC
code (so that the property value will continue to make sense). It
probably is only a few extra lines, though.
All the best,
David
--
David Megginson
[EMAIL PROTECTED]
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel