diff options
author | peter1138 <peter1138@openttd.org> | 2005-09-27 19:16:37 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-09-27 19:16:37 +0000 |
commit | 5f3bb18eb70826d1e35351112b50a5bbce3af799 (patch) | |
tree | 95d8fa6b0d45a162648ebc825e7dd09bdee0bb87 | |
parent | ff304041700c85e587babffdb99ba1c9ff399fc1 (diff) | |
download | openttd-5f3bb18eb70826d1e35351112b50a5bbce3af799.tar.xz |
(svn r2993) Fix: Reset aircraft images differently. Fixes assertion introduced in r2991.
-rw-r--r-- | vehicle.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; } |