summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-07 07:35:15 +0000
committertron <tron@openttd.org>2005-10-07 07:35:15 +0000
commit8980891b09a48438d295b73cd068b41184aa44a2 (patch)
tree75058b5a9db24d07229edde45f993401aec6bd63 /misc_gui.c
parent488db23ed85c4a5fd0ed27833cbd9e05be3a5c94 (diff)
downloadopenttd-8980891b09a48438d295b73cd068b41184aa44a2.tar.xz
(svn r3024) -Codechange: Another batch of replacements of int/uint/int16/byte/-1 with proper types and constants
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc_gui.c b/misc_gui.c
index 00062b5e2..2701ec4e9 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -583,19 +583,19 @@ void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y)
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;
@@ -712,7 +712,7 @@ static void DrawStationCoverageText(const AcceptedCargo accepts,
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);