diff options
author | peter1138 <peter1138@openttd.org> | 2006-06-22 21:03:19 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-06-22 21:03:19 +0000 |
commit | 84deeb78476cf8247c14e13c0276925167ee2e45 (patch) | |
tree | fd2469d21577422e9f417b7bfdfcd80830785030 /newgrf_engine.c | |
parent | c43dd953e262a3d700157901ac01dfba510d28a0 (diff) | |
download | openttd-84deeb78476cf8247c14e13c0276925167ee2e45.tar.xz |
(svn r5335) - Newgrf: correct spelling of hangar
Diffstat (limited to 'newgrf_engine.c')
-rw-r--r-- | newgrf_engine.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/newgrf_engine.c b/newgrf_engine.c index 1c9128ec1..577d53c34 100644 --- a/newgrf_engine.c +++ b/newgrf_engine.c @@ -244,8 +244,8 @@ static int MapOldSubType(const Vehicle *v) /* TTDP style aircraft movement states for GRF Action 2 Var 0xE2 */ enum { - AMS_TTDP_HANGER, - AMS_TTDP_TO_HANGER, + AMS_TTDP_HANGAR, + AMS_TTDP_TO_HANGAR, AMS_TTDP_TO_PAD1, AMS_TTDP_TO_PAD2, AMS_TTDP_TO_PAD3, @@ -301,10 +301,10 @@ static byte MapAircraftMovementState(const Vehicle *v) // The final two conditions apply to helicopters or aircraft. /* Has reached hanger? */ - if (amdflag & AMED_EXACTPOS) return AMS_TTDP_HANGER; + if (amdflag & AMED_EXACTPOS) return AMS_TTDP_HANGAR; // Still moving towards hanger. - return AMS_TTDP_TO_HANGER; + return AMS_TTDP_TO_HANGAR; case TERM1: if (amdflag & AMED_EXACTPOS) return AMS_TTDP_TO_PAD1; @@ -380,31 +380,31 @@ static byte MapAircraftMovementState(const Vehicle *v) return AMS_TTDP_FLIGHT_TO_TOWER; default: - return AMS_TTDP_HANGER; + return AMS_TTDP_HANGAR; } } /* TTDP style aircraft movement action for GRF Action 2 Var 0xE6 */ enum { - AMA_TTDP_IN_HANGER, + AMA_TTDP_IN_HANGAR, AMA_TTDP_ON_PAD1, AMA_TTDP_ON_PAD2, AMA_TTDP_ON_PAD3, - AMA_TTDP_HANGER_TO_PAD1, - AMA_TTDP_HANGER_TO_PAD2, - AMA_TTDP_HANGER_TO_PAD3, + AMA_TTDP_HANGAR_TO_PAD1, + AMA_TTDP_HANGAR_TO_PAD2, + AMA_TTDP_HANGAR_TO_PAD3, AMA_TTDP_LANDING_TO_PAD1, AMA_TTDP_LANDING_TO_PAD2, AMA_TTDP_LANDING_TO_PAD3, - AMA_TTDP_PAD1_TO_HANGER, - AMA_TTDP_PAD2_TO_HANGER, - AMA_TTDP_PAD3_TO_HANGER, + AMA_TTDP_PAD1_TO_HANGAR, + AMA_TTDP_PAD2_TO_HANGAR, + AMA_TTDP_PAD3_TO_HANGAR, AMA_TTDP_PAD1_TO_TAKEOFF, AMA_TTDP_PAD2_TO_TAKEOFF, AMA_TTDP_PAD3_TO_TAKEOFF, - AMA_TTDP_HANGER_TO_TAKOFF, - AMA_TTDP_LANDING_TO_HANGER, + AMA_TTDP_HANGAR_TO_TAKOFF, + AMA_TTDP_LANDING_TO_HANGAR, AMA_TTDP_IN_FLIGHT, }; @@ -418,7 +418,7 @@ static byte MapAircraftMovementAction(const Vehicle *v) { switch (v->u.air.state) { case HANGAR: - return (v->cur_speed > 0) ? AMA_TTDP_LANDING_TO_HANGER : AMA_TTDP_IN_HANGER; + return (v->cur_speed > 0) ? AMA_TTDP_LANDING_TO_HANGAR : AMA_TTDP_IN_HANGAR; case TERM1: case HELIPAD1: @@ -450,10 +450,10 @@ static byte MapAircraftMovementAction(const Vehicle *v) case HELIENDLANDING: // TODO Need to check terminal we're landing to. Is it known yet? return (v->current_order.type == OT_GOTO_DEPOT) ? - AMA_TTDP_LANDING_TO_HANGER : AMA_TTDP_LANDING_TO_PAD1; + AMA_TTDP_LANDING_TO_HANGAR : AMA_TTDP_LANDING_TO_PAD1; default: - return AMA_TTDP_IN_HANGER; + return AMA_TTDP_IN_HANGAR; } } |