1
0
Fork 0

also set new target altitude if wp is appended to empty list

This commit is contained in:
mfranz 2006-05-10 21:46:27 +00:00
parent 2ff16ca93f
commit cbddd130ec

View file

@ -229,7 +229,7 @@ void FGRouteMgr::update( double dt ) {
void FGRouteMgr::add_waypoint( const SGWayPoint& wp, int n ) {
if ( n == 0 )
if ( n == 0 || !route->size())
altitude_set = false;
route->add_waypoint( wp, n );