Fix name of CountTrainsNeedingTemplateReplacement

This commit is contained in:
Jonathan G Rennison
2024-06-27 22:50:32 +01:00
parent 0addb29e35
commit fced6d0eb2
3 changed files with 3 additions and 3 deletions

View File

@@ -696,7 +696,7 @@ public:
/* Draw the number of trains that still need to be treated by the currently selected template replacement */ /* Draw the number of trains that still need to be treated by the currently selected template replacement */
if (tid != INVALID_TEMPLATE) { if (tid != INVALID_TEMPLATE) {
const TemplateVehicle *tv = TemplateVehicle::Get(tid); 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(0, num_trains > 0 ? TC_ORANGE : TC_GREY);
SetDParam(1, num_trains); 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); draw_text(col2 + ScaleGUITrad(4), right - ScaleGUITrad(4), STR_TMPL_NUM_TRAINS_NEED_RPL, num_trains > 0 ? TC_BLACK : TC_GREY, SA_RIGHT);

View File

@@ -321,7 +321,7 @@ void CopyWagonStatus(TemplateVehicle *from, Train *to)
to->cargo_subtype = from->cargo_subtype; 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; uint count = 0;
if (!tv) return count; if (!tv) return count;

View File

@@ -42,7 +42,7 @@ struct TemplateDepotVehicles {
Train* ContainsEngine(EngineID eid, Train *not_in); 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); CommandCost TestBuyAllTemplateVehiclesInChain(TemplateVehicle *tv, TileIndex tile);