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
commitce7585101d58c617da5df7ebcbd76ab3ae64744f (patch)
tree3ce368979de2ee8b05287e0f9f3399bec5a6c043 /src
parent7cdd6ef33c93abe307b69e0b73a83d5dba1df921 (diff)
downloadopenttd-ce7585101d58c617da5df7ebcbd76ab3ae64744f.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++;