src/town_gui.cpp
branchgamebalance
changeset 9903 dc85aaa556ae
parent 9898 324dad59eb35
child 9908 0fa543611bbe
--- a/src/town_gui.cpp	Fri Mar 23 12:03:41 2007 +0000
+++ b/src/town_gui.cpp	Sat Mar 31 12:34:36 2007 +0000
@@ -58,8 +58,8 @@
 		}
 
 		// Things worth more than this are not shown
-		avail = GetPlayer(pid)->player_money + _price.station_value * 200;
-		ref = _price.build_industry >> 8;
+		avail = GetPlayer(pid)->player_money + _eco->GetPrice(CEconomy::STATION_VALUE) * 200;
+		ref = _eco->GetPrice(CEconomy::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) {
@@ -173,7 +173,7 @@
 			int i = WP(w,def_d).data_1;
 
 			if (i != -1) {
-				SetDParam(1, (_price.build_industry >> 8) * _town_action_costs[i]);
+				SetDParam(1, (_eco->GetPrice(CEconomy::BUILD_INDUSTRY) >> 8) * _town_action_costs[i]);
 				SetDParam(0, STR_2046_SMALL_ADVERTISING_CAMPAIGN + i);
 				DrawStringMultiLine(2, 159, STR_204D_INITIATE_A_SMALL_LOCAL + i, 313);
 			}