File diff r2497:4f8fde59a2e8 → r2498:8dfa040ed505
misc_gui.c
Show inline comments
 
@@ -580,25 +580,25 @@ void ShowErrorMessage(StringID msg_1, St
 
	w->desc_flags = WDF_STD_BTN | WDF_DEF_WIDGET;
 
}
 

	
 

	
 
void ShowEstimatedCostOrIncome(int32 cost, int x, int y)
 
{
 
	int msg = STR_0805_ESTIMATED_COST;
 
	StringID msg = STR_0805_ESTIMATED_COST;
 

	
 
	if (cost < 0) {
 
		cost = -cost;
 
		msg = STR_0807_ESTIMATED_INCOME;
 
	}
 
	SetDParam(0, cost);
 
	ShowErrorMessage(-1, msg, x, y);
 
	ShowErrorMessage(INVALID_STRING_ID, msg, x, y);
 
}
 

	
 
void ShowCostOrIncomeAnimation(int x, int y, int z, int32 cost)
 
{
 
	int msg;
 
	StringID msg;
 
	Point pt = RemapCoords(x,y,z);
 

	
 
	msg = STR_0801_COST;
 
	if (cost < 0) {
 
		cost = -cost;
 
		msg = STR_0803_INCOME;
 
@@ -709,13 +709,13 @@ static void DrawStationCoverageText(cons
 
	DrawStringMultiLine(str_x, str_y, STR_SPEC_USERSTRING, 144);
 
}
 

	
 
void DrawStationCoverageAreaText(int sx, int sy, uint mask, int rad) {
 
	int x = _thd.pos.x;
 
	int y = _thd.pos.y;
 
	uint accepts[NUM_CARGO];
 
	AcceptedCargo accepts;
 
	if (x != -1) {
 
		GetAcceptanceAroundTiles(accepts, TileVirtXY(x, y), _thd.size.x / 16, _thd.size.y / 16 , rad);
 
		DrawStationCoverageText(accepts, sx, sy, mask);
 
	}
 
}