summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-02-01 22:17:38 +0000
committerbjarni <bjarni@openttd.org>2005-02-01 22:17:38 +0000
commit081c068f566f7607b7e05ee79451974b3ec6dc7b (patch)
tree976459df8e38401c26af322829c982bc4e1b28da
parentc70aa109b4847d7d9a9916951667cfb58d53a540 (diff)
downloadopenttd-081c068f566f7607b7e05ee79451974b3ec6dc7b.tar.xz
(svn r1767) fixed mixed declarations and code in last commit (oops)
-rw-r--r--aircraft_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index 52c369b1d..8d8bf19bd 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -451,9 +451,9 @@ int32 CmdSendAircraftToHangar(int x, int y, uint32 flags, uint32 p1, uint32 p2)
if (st->xy == 0 || st->airport_tile == 0 || GetAirport(st->airport_type)->terminals == NULL) {
if (p2 == 0) {
// the aircraft have to search for a hangar on it's own
- next_airport_has_hangar = false;
uint32 temp = FindNearestHangar(v);
- if (HASBIT(temp, 16)) return CMD_ERROR; // the player do not own a hangar
+ next_airport_has_hangar = false;
+ if (HASBIT(temp, 16)) return CMD_ERROR; // the player does not own a hangar
st = GetStation(temp);
next_airport_index = (uint16)temp;
} else {