diff options
author | rubidium <rubidium@openttd.org> | 2007-09-30 17:38:42 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-30 17:38:42 +0000 |
commit | ff14665f6ebde59e8ef17d8f0e06e2d3e5aefd65 (patch) | |
tree | 78422746fe8ad53b0a58d7e0952ad6b100782715 /src/town_cmd.cpp | |
parent | c952f3d5eff35b04df91970e61ef1a50bac769ac (diff) | |
download | openttd-ff14665f6ebde59e8ef17d8f0e06e2d3e5aefd65.tar.xz |
(svn r11188) -Codechange: rewrite of the town action related code (remove some of the magic).
-Feature: possibility to disable exclusive rights and giving money. Both by skidd13.
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 972f3c3e7..c55bf8779 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -2014,6 +2014,9 @@ static void TownActionFundBuildings(Town* t) static void TownActionBuyRights(Town* t) { + /* Check if it's allowed to by the rights */ + if (!_patches.exclusive_rights) return; + t->exclusive_counter = 12; t->exclusivity = _current_player; |