summaryrefslogtreecommitdiff
path: root/src/town_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-30 17:38:42 +0000
committerrubidium <rubidium@openttd.org>2007-09-30 17:38:42 +0000
commitff14665f6ebde59e8ef17d8f0e06e2d3e5aefd65 (patch)
tree78422746fe8ad53b0a58d7e0952ad6b100782715 /src/town_cmd.cpp
parentc952f3d5eff35b04df91970e61ef1a50bac769ac (diff)
downloadopenttd-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.cpp3
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;