1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-13 17:49:10 +00:00

(svn r3201) -Fix: Allow bribing up to the maximum rating for bribing, don't disable this option at some arbitrary value early

This commit is contained in:
tron
2005-11-16 12:25:33 +00:00
parent 7a7847ed61
commit aaed2a41a0

View File

@@ -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