src/economy.cpp
changeset 7510 acb7cfe27b60
parent 7506 e52d89f5c7c1
child 7519 66445d420d02
--- a/src/economy.cpp	Fri Jun 22 17:34:04 2007 +0000
+++ b/src/economy.cpp	Fri Jun 22 18:28:44 2007 +0000
@@ -1669,11 +1669,12 @@
 
 	/* 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);
 		}
 	}