(svn r10478) -Fix [FS#999]: remove the loading indicator when a vehicle is removed.
authorrubidium
Sun, 08 Jul 2007 17:44:46 +0000
changeset 7200 54afe2891d7b
parent 7199 e65a28455ee3
child 7201 f2ecafa0f626
(svn r10478) -Fix [FS#999]: remove the loading indicator when a vehicle is removed.
src/vehicle.cpp
--- a/src/vehicle.cpp	Sun Jul 08 17:40:04 2007 +0000
+++ b/src/vehicle.cpp	Sun Jul 08 17:44:46 2007 +0000
@@ -675,6 +675,9 @@
 {
 	if (IsValidStationID(v->last_station_visited)) {
 		GetStation(v->last_station_visited)->loading_vehicles.remove(v);
+
+		HideFillingPercent(v->fill_percent_te_id);
+		v->fill_percent_te_id = INVALID_TE_ID;
 	}
 
 	if (IsEngineCountable(v)) {