1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-23 06:29:11 +00:00

Change: Ignore min/max years for manual house placer.

This commit is contained in:
2024-05-15 18:51:21 +01:00
parent 56ea002283
commit af31b2c043
2 changed files with 1 additions and 5 deletions

View File

@@ -2837,8 +2837,6 @@ CommandCost CmdPlaceHouse(DoCommandFlag flags, TileIndex tile, HouseID house)
const HouseSpec *hs = HouseSpec::Get(house);
if (!hs->enabled) return CMD_ERROR;
if (TimerGameCalendar::year < hs->min_year || TimerGameCalendar::year > hs->max_year) return CMD_ERROR;
Town *t = ClosestTownFromTile(tile, UINT_MAX);
/* cannot build on these slopes... */

View File

@@ -1490,9 +1490,7 @@ public:
bool IsTypeAvailable(int, int id) const override
{
const HouseSpec *hs = HouseSpec::Get(id);
if (!hs->enabled) return false;
if (TimerGameCalendar::year < hs->min_year || TimerGameCalendar::year > hs->max_year) return false;
return true;
return hs->enabled;
}
void DrawType(int x, int y, int, int id) const override