1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 11:29:10 +00:00

(svn r20477) -Codechange: remove some airport-related constants/functions and add some documentation

This commit is contained in:
yexo
2010-08-13 00:21:03 +00:00
parent 6babc60254
commit e4117dbfb7
4 changed files with 36 additions and 69 deletions

View File

@@ -242,7 +242,7 @@ static byte MapAircraftMovementState(const Aircraft *v)
case HELIPAD1:
case HELIPAD2:
case HELIPAD3:
case HELIPAD4: // Will only occur for helicopters.
/* Will only occur for helicopters.*/
if (amdflag & AMED_HELI_LOWER) return AMS_TTDP_HELI_LAND_AIRPORT; // Descending.
if (amdflag & AMED_SLOWTURN) return AMS_TTDP_FLIGHT_TO_TOWER; // Still hasn't started descent.
return AMS_TTDP_TO_JUNCTION; // On the ground.
@@ -340,7 +340,6 @@ static byte MapAircraftMovementAction(const Aircraft *v)
case TERM7:
case TERM8:
case HELIPAD3:
case HELIPAD4:
return (v->current_order.IsType(OT_LOADING)) ? AMA_TTDP_ON_PAD3 : AMA_TTDP_LANDING_TO_PAD3;
case TAKEOFF: // Moving to takeoff position