Merge branch 'master' into jgrpp
# Conflicts: # src/error.h # src/error_gui.cpp # src/linkgraph/linkgraph_gui.cpp # src/misc_gui.cpp # src/newgrf_gui.cpp # src/news_gui.cpp # src/rail_cmd.cpp # src/saveload/gamelog_sl.cpp # src/script/api/script_text.cpp # src/script/script_instance.cpp # src/statusbar_gui.cpp # src/strings.cpp # src/strings_func.h # src/strings_internal.h # src/table/settings/gui_settings.ini # src/table/settings/linkgraph_settings.ini # src/textbuf_gui.h
This commit is contained in:
@@ -933,7 +933,7 @@ static void GetTileDesc_Town(TileIndex tile, TileDesc *td)
|
||||
td->str = GetHouseName(house, tile);
|
||||
|
||||
if (!IsHouseCompleted(tile)) {
|
||||
SetDParamX(td->dparam, 0, td->str);
|
||||
td->dparam[0] = td->str;
|
||||
td->str = STR_LAI_TOWN_INDUSTRY_DESCRIPTION_UNDER_CONSTRUCTION;
|
||||
}
|
||||
|
||||
@@ -3699,6 +3699,7 @@ static CommandCost TownActionBuyRights(Town *t, DoCommandFlag flags)
|
||||
{
|
||||
/* Check if it's allowed to buy the rights */
|
||||
if (!_settings_game.economy.exclusive_rights) return CMD_ERROR;
|
||||
if (t->exclusivity != INVALID_COMPANY) return CMD_ERROR;
|
||||
|
||||
if (flags & DC_EXEC) {
|
||||
t->exclusive_counter = 12;
|
||||
@@ -3750,6 +3751,10 @@ static CommandCost TownActionBribe(Town *t, DoCommandFlag flags)
|
||||
}
|
||||
} else {
|
||||
ChangeTownRating(t, RATING_BRIBE_UP_STEP, RATING_BRIBE_MAXIMUM, DC_EXEC);
|
||||
if (t->exclusivity != _current_company && t->exclusivity != INVALID_COMPANY) {
|
||||
t->exclusivity = INVALID_COMPANY;
|
||||
t->exclusive_counter = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
return CommandCost();
|
||||
@@ -3794,7 +3799,7 @@ uint GetMaskOfTownActions(int *nump, CompanyID cid, const Town *t)
|
||||
if (cur == TACT_BRIBE && (!_settings_game.economy.bribe || t->ratings[cid] >= RATING_BRIBE_MAXIMUM)) continue;
|
||||
|
||||
/* Is the company not able to buy exclusive rights ? */
|
||||
if (cur == TACT_BUY_RIGHTS && !_settings_game.economy.exclusive_rights) continue;
|
||||
if (cur == TACT_BUY_RIGHTS && (!_settings_game.economy.exclusive_rights || t->exclusive_counter != 0)) continue;
|
||||
|
||||
/* Is the company not able to fund buildings ? */
|
||||
if (cur == TACT_FUND_BUILDINGS && !_settings_game.economy.fund_buildings) continue;
|
||||
|
Reference in New Issue
Block a user