summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-18 07:20:37 +0000
committercelestar <celestar@openttd.org>2006-04-18 07:20:37 +0000
commit6c5e9fe311d070e52eb6dcc130ede4530690fdf8 (patch)
treee5a5f2e17b255bfd4df516ef954f66156d200d48 /aircraft_cmd.c
parent04fe8ccb0bdaf939a47f76fcb14ef6fe28c088ce (diff)
downloadopenttd-6c5e9fe311d070e52eb6dcc130ede4530690fdf8.tar.xz
(svn r4465) -Codechange (FS#60): Remove a variable no one really needs. (DaleStan)
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index 13c0bc4a0..fbe131399 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -1600,7 +1600,6 @@ static bool AirportMove(Vehicle *v, const AirportFTAClass *Airport)
{
AirportFTA *current;
byte prev_pos;
- bool retval = false;
// error handling
if (v->u.air.pos >= Airport->nofelements) {
@@ -1624,7 +1623,7 @@ static bool AirportMove(Vehicle *v, const AirportFTAClass *Airport)
if (AirportSetBlocks(v, current, Airport)) {
v->u.air.pos = current->next_position;
} // move to next position
- return retval;
+ return false;
}
// there are more choices to choose from, choose the one that
@@ -1634,7 +1633,7 @@ static bool AirportMove(Vehicle *v, const AirportFTAClass *Airport)
if (AirportSetBlocks(v, current, Airport)) {
v->u.air.pos = current->next_position;
} // move to next position
- return retval;
+ return false;
}
current = current->next_in_chain;
} while (current != NULL);