Split date types into calendar and economy dates

See: 735abfe1
This commit is contained in:
Jonathan G Rennison
2024-02-13 21:34:09 +00:00
parent fad5ee56e7
commit 7ce06e22b8
141 changed files with 1325 additions and 1082 deletions

View File

@@ -117,7 +117,7 @@ Station::~Station()
Station *st = Station::Get((*lg)[node].Station());
GoodsEntryData *ged = st->goods[c].data.get();
if (ged != nullptr) ged->flows.erase(this->index);
if (lg->GetConstEdge(node, this->goods[c].node).LastUpdate() != INVALID_DATE) {
if (lg->GetConstEdge(node, this->goods[c].node).LastUpdate() != EconTime::INVALID_DATE) {
if (ged != nullptr) ged->flows.DeleteFlows(this->index);
RerouteCargo(st, c, this->index, st->index);
}
@@ -248,7 +248,7 @@ void Station::AddFacility(StationFacility new_facility_bit, TileIndex facil_xy)
}
this->facilities |= new_facility_bit;
this->owner = _current_company;
this->build_date = _date;
this->build_date = CalTime::CurDate();
}
/**