(svn r22985) -Feature: Display autoreplace status in group GUI.

This commit is contained in:
frosch
2011-10-03 17:26:37 +00:00
parent 23a2f23eb3
commit d071eefc54
8 changed files with 78 additions and 4 deletions

View File

@@ -680,6 +680,7 @@ void Vehicle::PreDestructor()
if (this->IsEngineCountable()) {
GroupStatistics::CountEngine(this, -1);
if (this->IsPrimaryVehicle()) GroupStatistics::CountVehicle(this, -1);
GroupStatistics::UpdateAutoreplace(this->owner);
if (this->owner == _local_company) InvalidateAutoreplaceWindow(this->engine_type, this->group_id);
DeleteGroupHighlightOfVehicle(this);