File diff r1961:7949b074d614 → r1962:cc4c06e3f6b5
town_gui.c
Show inline comments
 
@@ -49,13 +49,13 @@ uint GetMaskOfTownActions(int *nump, Pla
 
				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++;