src/game/Strategic/Map_Screen_Helicopter.cc
INT32 DistanceOfIntendedHelicopterPath( void )
{
	INT32 iLength = 0;
	if (!CanHelicopterFly())
	{
		// big number, no go
		return( 9999 );
	}

	PathSt const* pNode = GetHelicopter().pMercPath;

	// any path yet?
	if( pNode != NULL )
	{
		while( pNode -> pNext )
		{
			iLength++;
			pNode = pNode ->pNext;
		}
	}

	pNode = pTempHelicopterPath;

	// any path yet?
	if( pNode != NULL )
	{
		while( pNode -> pNext )
		{
			iLength++;
			pNode = pNode ->pNext;
		}
	}
	return( iLength );
}
// if the heli is on the move, what is the distance it will move..the length of the merc path, less the first node
if the heli is on the move, what is the distance it will move..the length of the merc path, less the first node
if the heli is on the move what is the distance it will move .. the length of the merc path less the first node
INT32 DistanceOfIntendedHelicopterPath( void )
{
	INT32 iLength = 0;
	if (!CanHelicopterFly())
	{
		return( 9999 );
	}
	PathSt const* pNode = GetHelicopter().pMercPath;
	if( pNode != NULL )
	{
		while( pNode -> pNext )
		{
			iLength++;
			pNode = pNode ->pNext;
		}
	}
	pNode = pTempHelicopterPath;
	if( pNode != NULL )
	{
		while( pNode -> pNext )
		{
			iLength++;
			pNode = pNode ->pNext;
		}
	}
	return( iLength );
}
INT32 DistanceOfIntendedHelicopterPath ( void ) { INT32 iLength = 0 ; if ( ! CanHelicopterFly ( ) ) { return ( 9999 ) ; } PathSt const * pNode = GetHelicopter ( ) . pMercPath ; if ( pNode != NULL ) { while ( pNode -> pNext ) { iLength ++ ; pNode = pNode -> pNext ; } } pNode = pTempHelicopterPath ; if ( pNode != NULL ) { while ( pNode -> pNext ) { iLength ++ ; pNode = pNode -> pNext ; } } return ( iLength ) ; }
if the heli is on the move, what is the distance it will move..the length of the merc path, less the first node
if the heli is on the move what is the distance it will move .. the length of the merc path less the first node
// big number, no go // any path yet? // any path yet?