mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(svn r1767) fixed mixed declarations and code in last commit (oops)
This commit is contained in:
parent
c70aa109b4
commit
081c068f56
@ -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 (st->xy == 0 || st->airport_tile == 0 || GetAirport(st->airport_type)->terminals == NULL) {
|
||||||
if (p2 == 0) {
|
if (p2 == 0) {
|
||||||
// the aircraft have to search for a hangar on it's own
|
// the aircraft have to search for a hangar on it's own
|
||||||
next_airport_has_hangar = false;
|
|
||||||
uint32 temp = FindNearestHangar(v);
|
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);
|
st = GetStation(temp);
|
||||||
next_airport_index = (uint16)temp;
|
next_airport_index = (uint16)temp;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user