summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-02-07 13:46:28 +0000
committertron <tron@openttd.org>2007-02-07 13:46:28 +0000
commitf4144f1373476501fa969759b8cd102591b242c8 (patch)
treeeab0c2c39b9e1bd0c80db47fdba6b1e964bbf486 /src
parentfd4e74efed923b5acaad1aa8a385939dd9689b51 (diff)
downloadopenttd-f4144f1373476501fa969759b8cd102591b242c8.tar.xz
(svn r8618) -Fix
Remove redundant assignments. The function call just before already does it
Diffstat (limited to 'src')
-rw-r--r--src/aircraft_cmd.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index be2899648..1d31c55c2 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -555,7 +555,6 @@ int32 CmdSendAircraftToHangar(TileIndex tile, uint32 flags, uint32 p1, uint32 p2
if (v->u.air.state == FLYING && !next_airport_has_hangar) {
/* The aircraft is now heading for a different hangar than the next in the orders */
AircraftNextAirportPos_and_Order(v);
- v->u.air.targetairport = next_airport_index;
}
}
}
@@ -1245,7 +1244,6 @@ static void ProcessAircraftOrder(Vehicle *v)
// orders are changed in flight, ensure going to the right station
if (order->type == OT_GOTO_STATION && v->u.air.state == FLYING) {
AircraftNextAirportPos_and_Order(v);
- v->u.air.targetairport = order->dest;
}
InvalidateVehicleOrder(v);