1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 17:39:09 +00:00

(svn r9819) -Codechange: Take account of AMED_HOLD in OTTD/TTDP state translation (bulb)

This commit is contained in:
2007-05-10 09:21:22 +00:00
parent dc2073b96e
commit 9643fd7638

View File

@@ -246,7 +246,7 @@ static byte MapAircraftMovementState(const Vehicle *v)
{
const Station *st = GetStation(v->u.air.targetairport);
const AirportFTAClass *afc = st->Airport();
byte amdflag = afc->MovingData(v->u.air.pos)->flag;
uint16 amdflag = afc->MovingData(v->u.air.pos)->flag;
switch (v->u.air.state) {
case HANGAR:
@@ -313,7 +313,7 @@ static byte MapAircraftMovementState(const Vehicle *v)
}
case FLYING:
return AMS_TTDP_FLIGHT_TO_TOWER;
return amdflag & AMED_HOLD ? AMS_TTDP_FLIGHT_APPROACH : AMS_TTDP_FLIGHT_TO_TOWER;
case LANDING: // Descent
return AMS_TTDP_FLIGHT_DESCENT;