summaryrefslogtreecommitdiff
path: root/town_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-16 12:25:33 +0000
committertron <tron@openttd.org>2005-11-16 12:25:33 +0000
commit2001577f8f752560fb26fc7edab022f9462c9b9f (patch)
treeb13e32d1dcabbe20cc1d4bb05c2e39ce6d905687 /town_gui.c
parent6f82be949fc8cd815dde77eae112574ee96beece (diff)
downloadopenttd-2001577f8f752560fb26fc7edab022f9462c9b9f.tar.xz
(svn r3201) -Fix: Allow bribing up to the maximum rating for bribing, don't disable this option at some arbitrary value early
Diffstat (limited to 'town_gui.c')
-rw-r--r--town_gui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/town_gui.c b/town_gui.c
index 5e742a59a..92be24b6c 100644
--- a/town_gui.c
+++ b/town_gui.c
@@ -52,8 +52,9 @@ uint GetMaskOfTownActions(int *nump, PlayerID pid, const Town *t)
// if unwanted, disable everything.
if (t->unwanted[pid]) {
avail_buttons = 0;
- } else if (t->ratings[pid] < 600)
- SETBIT(avail_buttons, 7); // only bribe if less than excellent
+ } else if (t->ratings[pid] < RATING_BRIBE_MAXIMUM) {
+ SETBIT(avail_buttons, 7); // Allow bribing
+ }
}
// Things worth more than this are not shown