Mercurial > hg > openttd
changeset 5952:564a4b04fc8a draft
(svn r8618) -Fix
Remove redundant assignments. The function call just before already does it
author | tron <tron@openttd.org> |
---|---|
date | Wed, 07 Feb 2007 13:46:28 +0000 |
parents | 939f8479d569 |
children | 81aac4ab6860 |
files | src/aircraft_cmd.cpp |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -555,7 +555,6 @@ 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 @@ // 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);