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

@@ -30,7 +30,7 @@
case 0x40: return 0;
case 0x41: return 0;
case 0x42: return 0;
case 0x43: return _date.base();
case 0x43: return CalTime::CurDate().base();
case 0x44: return HZB_TOWN_EDGE;
}
}
@@ -41,7 +41,7 @@
case 0x42: return IsLevelCrossingTile(this->tile) && IsCrossingBarred(this->tile);
case 0x43:
if (IsRoadDepotTile(this->tile)) return Depot::GetByTile(this->tile)->build_date.base();
return _date.base();
return CalTime::CurDate().base();
case 0x44: {
const Town *t = nullptr;
if (IsRoadDepotTile(this->tile)) {