@@ -43,25 +43,25 @@ uint GetMaskOfTownActions(int *nump, Pla
if (pid != OWNER_SPECTATOR) {
int i;
// bribe option enabled?
if (_patches.bribe) {
// 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
}
// Things worth more than this are not shown
avail = DEREF_PLAYER(pid)->player_money + _price.station_value * 200;
avail = GetPlayer(pid)->player_money + _price.station_value * 200;
ref = _price.build_industry >> 8;
for (i = 0; i != lengthof(_town_action_costs); i++, avail_buttons >>= 1) {
if (HASBIT(avail_buttons, 0) && avail >= _town_action_costs[i] * ref) {
SETBIT(buttons, i);
num++;
/* Disable build statue if already built */
if (HASBIT(t->statues, pid)) {
CLRBIT(buttons, 4);