summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-15 08:58:31 +0000
committertron <tron@openttd.org>2005-01-15 08:58:31 +0000
commit3279a7c9a26242f5f0a8e4b41ae6e2d9e24ee169 (patch)
treee70312993e66c5b848feb30831527cca401c08f8 /aircraft_cmd.c
parent7f7c6297f7bb6bb225741773a5438a916a91da08 (diff)
downloadopenttd-3279a7c9a26242f5f0a8e4b41ae6e2d9e24ee169.tar.xz
(svn r1520) Trim 134 (!) lines with trailing whitespace ):
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index 4f4483ec2..5157e5f61 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -511,9 +511,9 @@ static void CheckIfAircraftNeedsService(Vehicle *v)
void InvalidateAircraftWindows(Vehicle *v)
{
Order *o;
-
+
InvalidateWindow(WC_AIRCRAFT_LIST, v->owner);
-
+
for ( o = v->schedule_ptr; o->type != OT_NOTHING; o++, i++) {
if (o->type == OT_GOTO_STATION ) {
InvalidateWindow(WC_AIRCRAFT_LIST, o->station << 16 | v->owner);
@@ -548,7 +548,7 @@ void OnNewDay_Aircraft(Vehicle *v)
SubtractMoneyFromPlayerFract(v->owner, cost);
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
-
+
InvalidateAircraftWindows(v);
}
@@ -1714,10 +1714,10 @@ static bool FreeTerminal(Vehicle *v, byte i, byte last_terminal)
static int GetNumTerminals(const AirportFTAClass *Airport)
{
int i, num = 0;
-
+
for (i = Airport->terminals[0]; i > 0; i--)
num += Airport->terminals[i];
-
+
return num;
}
@@ -1773,10 +1773,10 @@ static bool AirportFindFreeTerminal(Vehicle *v, const AirportFTAClass *Airport)
static int GetNumHelipads(const AirportFTAClass *Airport)
{
int i, num = 0;
-
+
for (i = Airport->helipads[0]; i > 0; i--)
num += Airport->helipads[i];
-
+
return num;
}
@@ -1882,7 +1882,7 @@ void Aircraft_Tick(Vehicle *v)
void UpdateOilRig( void )
{
Station *st;
-
+
FOR_ALL_STATIONS(st) {
if (st->airport_type == 5) st->airport_type = AT_OILRIG;
}