File diff r15612:c4c9adbab3f3 → r15613:193c12018337
src/airport.cpp
Show inline comments
 
@@ -227,13 +227,14 @@ AirportFTAClass::~AirportFTAClass()
 
	free(layout);
 
}
 

	
 
/**
 
 * Get the number of elements of a source Airport state automata
 
 * Since it is actually just a big array of AirportFTA types, we only
 
 * know one element from the other by differing 'position' identifiers */
 
 * know one element from the other by differing 'position' identifiers
 
 */
 
static uint16 AirportGetNofElements(const AirportFTAbuildup *apFA)
 
{
 
	uint16 nofelements = 0;
 
	int temp = apFA[0].position;
 

	
 
	for (uint i = 0; i < MAX_ELEMENTS; i++) {
 
@@ -246,13 +247,14 @@ static uint16 AirportGetNofElements(cons
 
	return nofelements;
 
}
 

	
 
/**
 
 * We calculate the terminal/helipod count based on the data passed to us
 
 * This data (terminals) contains an index as a first element as to how many
 
 * groups there are, and then the number of terminals for each group */
 
 * groups there are, and then the number of terminals for each group
 
 */
 
static byte AirportGetTerminalCount(const byte *terminals, byte *groups)
 
{
 
	byte nof_terminals = 0;
 
	*groups = 0;
 

	
 
	if (terminals != NULL) {