summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-06-03 03:06:16 +0000
committerbelugas <belugas@openttd.org>2008-06-03 03:06:16 +0000
commit4b4e73c1dd6c77a5876f826a45af1263b1b3eb96 (patch)
treee38c9f3a4aaf40616ccf40c61f828bbcbc9f6e38 /src/town_cmd.cpp
parentb0ada3fbbf25693675a18e3360657816ed5cf2ca (diff)
downloadopenttd-4b4e73c1dd6c77a5876f826a45af1263b1b3eb96.tar.xz
(svn r13368) -Codechange: give house's min/max_date a better name, as it is really year, not date
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r--src/town_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp
index 2967e11da..5314803ec 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -1931,7 +1931,7 @@ static bool BuildTownHouse(Town *t, TileIndex tile)
}
}
- if (_cur_year < hs->min_date || _cur_year > hs->max_date) continue;
+ if (_cur_year < hs->min_year || _cur_year > hs->max_year) continue;
/* Special houses that there can be only one of. */
uint oneof = 0;