mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Fix name of CountTrainsNeedingTemplateReplacement
This commit is contained in:
parent
0addb29e35
commit
fced6d0eb2
@ -696,7 +696,7 @@ public:
|
||||
/* Draw the number of trains that still need to be treated by the currently selected template replacement */
|
||||
if (tid != INVALID_TEMPLATE) {
|
||||
const TemplateVehicle *tv = TemplateVehicle::Get(tid);
|
||||
const uint num_trains = CountsTrainsNeedingTemplateReplacement(g_id, tv);
|
||||
const uint num_trains = CountTrainsNeedingTemplateReplacement(g_id, tv);
|
||||
SetDParam(0, num_trains > 0 ? TC_ORANGE : TC_GREY);
|
||||
SetDParam(1, num_trains);
|
||||
draw_text(col2 + ScaleGUITrad(4), right - ScaleGUITrad(4), STR_TMPL_NUM_TRAINS_NEED_RPL, num_trains > 0 ? TC_BLACK : TC_GREY, SA_RIGHT);
|
||||
|
@ -321,7 +321,7 @@ void CopyWagonStatus(TemplateVehicle *from, Train *to)
|
||||
to->cargo_subtype = from->cargo_subtype;
|
||||
}
|
||||
|
||||
uint CountsTrainsNeedingTemplateReplacement(GroupID g_id, const TemplateVehicle *tv)
|
||||
uint CountTrainsNeedingTemplateReplacement(GroupID g_id, const TemplateVehicle *tv)
|
||||
{
|
||||
uint count = 0;
|
||||
if (!tv) return count;
|
||||
|
@ -42,7 +42,7 @@ struct TemplateDepotVehicles {
|
||||
Train* ContainsEngine(EngineID eid, Train *not_in);
|
||||
};
|
||||
|
||||
uint CountsTrainsNeedingTemplateReplacement(GroupID g_id, const TemplateVehicle *tv);
|
||||
uint CountTrainsNeedingTemplateReplacement(GroupID g_id, const TemplateVehicle *tv);
|
||||
|
||||
CommandCost TestBuyAllTemplateVehiclesInChain(TemplateVehicle *tv, TileIndex tile);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user