(svn r21974) -Feature: Add a setting to enable/disable funding local road reconstruction.
This commit is contained in:
@@ -2469,6 +2469,9 @@ static CommandCost TownActionAdvertiseLarge(Town *t, DoCommandFlag flags)
|
||||
|
||||
static CommandCost TownActionRoadRebuild(Town *t, DoCommandFlag flags)
|
||||
{
|
||||
/* Check if the company is allowed to fund new roads. */
|
||||
if (!_settings_game.economy.fund_roads) return CMD_ERROR;
|
||||
|
||||
if (flags & DC_EXEC) {
|
||||
t->road_build_months = 6;
|
||||
|
||||
@@ -2639,6 +2642,9 @@ uint GetMaskOfTownActions(int *nump, CompanyID cid, const Town *t)
|
||||
/* Is the company not able to buy exclusive rights ? */
|
||||
if (cur == TACT_BUY_RIGHTS && !_settings_game.economy.exclusive_rights) continue;
|
||||
|
||||
/* Is the company not able to fund local road reconstruction? */
|
||||
if (cur == TACT_ROAD_REBUILD && !_settings_game.economy.fund_roads) continue;
|
||||
|
||||
/* Is the company not able to build a statue ? */
|
||||
if (cur == TACT_BUILD_STATUE && HasBit(t->statues, cid)) continue;
|
||||
|
||||
|
Reference in New Issue
Block a user