summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-07-25 19:50:40 +0000
committersmatz <smatz@openttd.org>2008-07-25 19:50:40 +0000
commit9943ac29420d324ea580c3d869cb906e8cdc0ef8 (patch)
tree3ce368979de2ee8b05287e0f9f3399bec5a6c043 /src
parentba8905fd2c22f0dfaddd3779491cae65d8959e19 (diff)
downloadopenttd-9943ac29420d324ea580c3d869cb906e8cdc0ef8.tar.xz
(svn r13826) -Codechange: use 'INVALID_DATE' instead of '0' as placeholder in tile description
Diffstat (limited to 'src')
-rw-r--r--src/misc_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 386d23962..69f2d10b0 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -116,7 +116,7 @@ public:
TileDesc td;
AcceptedCargo ac;
- td.build_date = 0;
+ td.build_date = INVALID_DATE;
/* Most tiles have only one owner, but
* - drivethrough roadstops can be build on town owned roads (up to 2 owners) and
@@ -180,7 +180,7 @@ public:
line_nr++;
/* Build date */
- if (td.build_date != 0) {
+ if (td.build_date != INVALID_DATE) {
SetDParam(0, td.build_date);
GetString(this->landinfo_data[line_nr], STR_BUILD_DATE, lastof(this->landinfo_data[line_nr]));
line_nr++;