summaryrefslogtreecommitdiff
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
commitaaed2a41a08945395d28d2223138cecd11771467 (patch)
treeb13e32d1dcabbe20cc1d4bb05c2e39ce6d905687
parent7a7847ed6192767f237300d9835f55c35c6fb9ec (diff)
downloadopenttd-aaed2a41a08945395d28d2223138cecd11771467.tar.xz
(svn r3201) -Fix: Allow bribing up to the maximum rating for bribing, don't disable this option at some arbitrary value early
-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