From 5f3bb18eb70826d1e35351112b50a5bbce3af799 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 27 Sep 2005 19:16:37 +0000 Subject: (svn r2993) Fix: Reset aircraft images differently. Fixes assertion introduced in r2991. --- vehicle.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vehicle.c b/vehicle.c index f3c4acade..e1e5fabdc 100644 --- a/vehicle.c +++ b/vehicle.c @@ -191,7 +191,14 @@ void AfterLoadVehicles(void) case VEH_Train: v->cur_image = GetTrainImage(v, v->direction); break; case VEH_Road: v->cur_image = GetRoadVehImage(v, v->direction); break; case VEH_Ship: v->cur_image = GetShipImage(v, v->direction); break; - case VEH_Aircraft: v->cur_image = GetAircraftImage(v, v->direction); break; + case VEH_Aircraft: + if (v->subtype == 0 || v->subtype == 2) { + v->cur_image = GetAircraftImage(v, v->direction); + if (v->next != NULL) { + v->next->cur_image = v->cur_image; + } + } + break; default: break; } -- cgit v1.2.3-70-g09d2