summaryrefslogtreecommitdiff
path: root/airport.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-07-26 03:33:12 +0000
committerbelugas <belugas@openttd.org>2006-07-26 03:33:12 +0000
commit6082507fea5070cfa7846a4bc9b0c02706fbeee7 (patch)
tree49db495ba0ae909a8a9645176b5b5b72483be02f /airport.c
parentfd0305197ef5e50554ae06dd8e3ddd8238cbeca1 (diff)
downloadopenttd-6082507fea5070cfa7846a4bc9b0c02706fbeee7.tar.xz
(svn r5609) CodeChange : Apply coding style
Diffstat (limited to 'airport.c')
-rw-r--r--airport.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/airport.c b/airport.c
index 6f8cb5ceb..401e3ac5d 100644
--- a/airport.c
+++ b/airport.c
@@ -9,16 +9,16 @@
#include "variables.h"
#include "airport_movement.h"
-static AirportFTAClass* CountryAirport;
-static AirportFTAClass* CityAirport;
-static AirportFTAClass* Oilrig;
-static AirportFTAClass* Heliport;
-static AirportFTAClass* MetropolitanAirport;
-static AirportFTAClass* InternationalAirport;
-static AirportFTAClass* CommuterAirport;
-static AirportFTAClass* HeliDepot;
-static AirportFTAClass* IntercontinentalAirport;
-static AirportFTAClass* HeliStation;
+static AirportFTAClass *CountryAirport;
+static AirportFTAClass *CityAirport;
+static AirportFTAClass *Oilrig;
+static AirportFTAClass *Heliport;
+static AirportFTAClass *MetropolitanAirport;
+static AirportFTAClass *InternationalAirport;
+static AirportFTAClass *CommuterAirport;
+static AirportFTAClass *HeliDepot;
+static AirportFTAClass *IntercontinentalAirport;
+static AirportFTAClass *HeliStation;
static void AirportFTAClass_Constructor(AirportFTAClass *Airport,
const byte *terminals, const byte *helipads,
@@ -201,7 +201,7 @@ static void AirportFTAClass_Constructor(AirportFTAClass *Airport,
byte nofterminals, nofhelipads;
byte nofterminalgroups = 0;
byte nofhelipadgroups = 0;
- const byte * curr;
+ const byte *curr;
int i;
nofterminals = nofhelipads = 0;
@@ -329,7 +329,7 @@ static void AirportBuildAutomata(AirportFTAClass *Airport, const AirportFTAbuild
// outgoing nodes from the same position, create linked list
while (current->position == FA[internalcounter + 1].position) {
- AirportFTA* newNode = malloc(sizeof(AirportFTA));
+ AirportFTA *newNode = malloc(sizeof(AirportFTA));
newNode->position = FA[internalcounter + 1].position;
newNode->heading = FA[internalcounter + 1].heading;
@@ -444,7 +444,7 @@ static void AirportPrintOut(const AirportFTAClass *Airport, const bool full_repo
}
#endif
-const AirportFTAClass* GetAirport(const byte airport_type)
+const AirportFTAClass *GetAirport(const byte airport_type)
{
//FIXME -- AircraftNextAirportPos_and_Order -> Needs something nicer, don't like this code
// needs constant change if more airports are added