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
commit0cf79d70d0d1b2cccec4053fd9afa500db542b7a (patch)
treee38c9f3a4aaf40616ccf40c61f828bbcbc9f6e38 /src/town_cmd.cpp
parentf7b79916e88cad5f25999a9006b67c25347bd569 (diff)
downloadopenttd-0cf79d70d0d1b2cccec4053fd9afa500db542b7a.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;