(svn r2993) Fix: Reset aircraft images differently. Fixes assertion introduced in r2991.
authorpeter1138
Tue, 27 Sep 2005 19:16:37 +0000
changeset 2467 50a1bfdb6431
parent 2466 2774132ebb9a
child 2468 15753a8438ba
(svn r2993) Fix: Reset aircraft images differently. Fixes assertion introduced in r2991.
vehicle.c
--- a/vehicle.c	Tue Sep 27 18:51:04 2005 +0000
+++ b/vehicle.c	Tue Sep 27 19:16:37 2005 +0000
@@ -191,7 +191,14 @@
 				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;
 			}