Strong typedef: Use strong typedefs for date, date tick, minutes types
Add delta types Adjust/add type conversion functions Add various utility methods on types Remove the various minute macros Fix some minute conversion inconsistencies
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
case 0x40: return 0;
|
||||
case 0x41: return 0;
|
||||
case 0x42: return 0;
|
||||
case 0x43: return _date;
|
||||
case 0x43: return _date.base();
|
||||
case 0x44: return HZB_TOWN_EDGE;
|
||||
case A2VRI_RAILTYPE_SIGNAL_RESTRICTION_INFO: return 0;
|
||||
case A2VRI_RAILTYPE_SIGNAL_CONTEXT: return this->signal_context;
|
||||
@@ -49,8 +49,8 @@
|
||||
case 0x41: return 0;
|
||||
case 0x42: return IsLevelCrossingTile(this->tile) && IsCrossingBarred(this->tile);
|
||||
case 0x43:
|
||||
if (IsRailDepotTile(this->tile)) return Depot::GetByTile(this->tile)->build_date;
|
||||
return _date;
|
||||
if (IsRailDepotTile(this->tile)) return Depot::GetByTile(this->tile)->build_date.base();
|
||||
return _date.base();
|
||||
case 0x44: {
|
||||
const Town *t = nullptr;
|
||||
if (IsRailDepotTile(this->tile)) {
|
||||
|
Reference in New Issue
Block a user