* Get the number of terminals at the airport. * @param apc Airport description. * @return Number of terminals. */
| 1990 | * @return Number of terminals. |
| 1991 | */ |
| 1992 | static uint GetNumTerminals(const AirportFTAClass *apc) |
| 1993 | { |
| 1994 | uint num = 0; |
| 1995 | |
| 1996 | for (uint i = apc->terminals[0]; i > 0; i--) num += apc->terminals[i]; |
| 1997 | |
| 1998 | return num; |
| 1999 | } |
| 2000 | |
| 2001 | /** |
| 2002 | * Find a free terminal, and assign it if available. |
no outgoing calls
no test coverage detected