diff options
author | truelight <truelight@openttd.org> | 2007-06-22 18:28:44 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-22 18:28:44 +0000 |
commit | f80fa33cc5f45bc74c10324fdec598c9486cf44b (patch) | |
tree | 20623f97dba17284a729f18f337f9277809b8527 /src/economy.cpp | |
parent | 74b867db72f3534d271cdf43747f80c99e0ae2df (diff) | |
download | openttd-f80fa33cc5f45bc74c10324fdec598c9486cf44b.tar.xz |
(svn r10270) -Add: prefixed the loading indicator with an arrow, up meaning vehicle is loading, down meaning vehicle is unloading
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index b2091057d..2f12a070e 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1669,11 +1669,12 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left) /* Calculate the loading indicator fill percent and display */ if (_patches.loading_indicators && _game_mode != GM_MENU && v->owner == _local_player) { - int percent = CalcPercentVehicleFilled(v); + StringID percent_up_down = STR_NULL; + int percent = CalcPercentVehicleFilled(v, &percent_up_down); if (v->fill_percent_te_id == INVALID_TE_ID) { - v->fill_percent_te_id = ShowFillingPercent(v->x_pos, v->y_pos, v->z_pos + 20, percent); + v->fill_percent_te_id = ShowFillingPercent(v->x_pos, v->y_pos, v->z_pos + 20, percent, percent_up_down); } else { - UpdateFillingPercent(v->fill_percent_te_id, percent); + UpdateFillingPercent(v->fill_percent_te_id, percent, percent_up_down); } } |