diff options
author | frosch <frosch@openttd.org> | 2008-11-22 19:49:17 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-11-22 19:49:17 +0000 |
commit | 2d0ff15267835779c286abe5ef5d2894f3ee0994 (patch) | |
tree | b0a5809e5719244f9f88445b8115f93c3a666ce3 /src | |
parent | 5cb5eeb911d888dd2fe05dcc836e6cc8ca98768a (diff) | |
download | openttd-2d0ff15267835779c286abe5ef5d2894f3ee0994.tar.xz |
(svn r14608) -Fix (r9315): Return the current year as construction year for unfinished houses.
Diffstat (limited to 'src')
-rw-r--r-- | src/town_map.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/town_map.h b/src/town_map.h index 3b6263c6a..e5f55c12b 100644 --- a/src/town_map.h +++ b/src/town_map.h @@ -7,6 +7,7 @@ #include "town.h" #include "date_type.h" +#include "date_func.h" #include "tile_map.h" /** @@ -285,7 +286,7 @@ static inline void SetHouseConstructionYear(TileIndex t, Year year) static inline Year GetHouseConstructionYear(TileIndex t) { assert(IsTileType(t, MP_HOUSE)); - return IsHouseCompleted(t) ? _m[t].m5 + GetHouseSpecs(GetHouseType(t))->min_year : 0; + return IsHouseCompleted(t) ? _m[t].m5 + GetHouseSpecs(GetHouseType(t))->min_year : _cur_year; } /** |