mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-19 10:26:27 +01:00
(svn r14608) -Fix (r9315): Return the current year as construction year for unfinished houses.
This commit is contained in:
parent
6df10074d4
commit
5aad874639
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
#include "town.h"
|
#include "town.h"
|
||||||
#include "date_type.h"
|
#include "date_type.h"
|
||||||
|
#include "date_func.h"
|
||||||
#include "tile_map.h"
|
#include "tile_map.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -285,7 +286,7 @@ static inline void SetHouseConstructionYear(TileIndex t, Year year)
|
|||||||
static inline Year GetHouseConstructionYear(TileIndex t)
|
static inline Year GetHouseConstructionYear(TileIndex t)
|
||||||
{
|
{
|
||||||
assert(IsTileType(t, MP_HOUSE));
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user