(svn r18464) -Fix (r17863): Caption of the build vehicle window did not have company colours.

This commit is contained in:
alberth 2009-12-11 20:37:24 +00:00
parent 53d6d4a094
commit 64f1e18830

View File

@ -758,8 +758,6 @@ struct BuildVehicleWindow : Window {
this->vehicle_type = type; this->vehicle_type = type;
this->window_number = tile == INVALID_TILE ? (int)type : tile; this->window_number = tile == INVALID_TILE ? (int)type : tile;
this->owner = (tile != INVALID_TILE) ? GetTileOwner(tile) : _local_company;
this->sel_engine = INVALID_ENGINE; this->sel_engine = INVALID_ENGINE;
this->sort_criteria = _last_sort_criteria[type]; this->sort_criteria = _last_sort_criteria[type];
@ -835,6 +833,8 @@ struct BuildVehicleWindow : Window {
this->FinishInitNested(desc, tile == INVALID_TILE ? (int)type : tile); this->FinishInitNested(desc, tile == INVALID_TILE ? (int)type : tile);
this->owner = (tile != INVALID_TILE) ? GetTileOwner(tile) : _local_company;
this->eng_list.ForceRebuild(); this->eng_list.ForceRebuild();
this->GenerateBuildList(); // generate the list, since we need it in the next line this->GenerateBuildList(); // generate the list, since we need it in the next line
/* Select the first engine in the list as default when opening the window */ /* Select the first engine in the list as default when opening the window */