mirror of https://github.com/OpenTTD/OpenTTD
(svn r13826) -Codechange: use 'INVALID_DATE' instead of '0' as placeholder in tile description
parent
7cdd6ef33c
commit
ce7585101d
|
@ -116,7 +116,7 @@ public:
|
||||||
TileDesc td;
|
TileDesc td;
|
||||||
AcceptedCargo ac;
|
AcceptedCargo ac;
|
||||||
|
|
||||||
td.build_date = 0;
|
td.build_date = INVALID_DATE;
|
||||||
|
|
||||||
/* Most tiles have only one owner, but
|
/* Most tiles have only one owner, but
|
||||||
* - drivethrough roadstops can be build on town owned roads (up to 2 owners) and
|
* - drivethrough roadstops can be build on town owned roads (up to 2 owners) and
|
||||||
|
@ -180,7 +180,7 @@ public:
|
||||||
line_nr++;
|
line_nr++;
|
||||||
|
|
||||||
/* Build date */
|
/* Build date */
|
||||||
if (td.build_date != 0) {
|
if (td.build_date != INVALID_DATE) {
|
||||||
SetDParam(0, td.build_date);
|
SetDParam(0, td.build_date);
|
||||||
GetString(this->landinfo_data[line_nr], STR_BUILD_DATE, lastof(this->landinfo_data[line_nr]));
|
GetString(this->landinfo_data[line_nr], STR_BUILD_DATE, lastof(this->landinfo_data[line_nr]));
|
||||||
line_nr++;
|
line_nr++;
|
||||||
|
|
Loading…
Reference in New Issue