Change: log some stuff about industries accepting cargos (broken)

This commit is contained in:
Andy
2014-12-27 20:02:03 +00:00
parent 6bd059c712
commit ce9f3598cc

View File

@@ -10,6 +10,12 @@ function FMainClass::Start()
local label = cid + " (" + GSCargo.GetCargoLabel(cid) + ")" local label = cid + " (" + GSCargo.GetCargoLabel(cid) + ")"
if (GSCargo.IsFreight(cid)) { if (GSCargo.IsFreight(cid)) {
GSLog.Info(label + " is freight."); GSLog.Info(label + " is freight.");
local accept_inds = GSIndustryList_CargoAccepting(cid);
local prod_inds = GSIndustryList_CargoProducing(cid);
GSLog.Info(GSIndustryList_CargoAccepting(cid))
foreach (accept_ind in accept_inds) {
GSLog.Info(GSIndustry.GetName(accept_ind));
}
} else if (GSCargo.GetTownEffect(cid) != GSCargo.TE_NONE) { } else if (GSCargo.GetTownEffect(cid) != GSCargo.TE_NONE) {
GSLog.Info(label + " affects town."); GSLog.Info(label + " affects town.");
} else { } else {