summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2012-10-09 19:09:45 +0000
committerplanetmaker <planetmaker@openttd.org>2012-10-09 19:09:45 +0000
commita9af5f3c76e74db860cad1cdf22acdc7175bbb31 (patch)
tree31624c14d013ee3350b70d99889ee2a0f9372e80
parent0b0351604936c1600b00861daf236e4b067bf3be (diff)
downloadopenttd-a9af5f3c76e74db860cad1cdf22acdc7175bbb31.tar.xz
(svn r24579) -Change [FS#5322] (r21961): Show no loading indicator when orders are 'no unloading and no loading' (sbr)
-rw-r--r--src/lang/english.txt2
-rw-r--r--src/vehicle.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/lang/english.txt b/src/lang/english.txt
index 72289b179..a1ee33eb8 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -3757,6 +3757,8 @@ STR_PERCENT_DOWN_SMALL :{TINY_FONT}{WHI
STR_PERCENT_DOWN :{WHITE}{NUM}%{DOWN_ARROW}
STR_PERCENT_UP_DOWN_SMALL :{TINY_FONT}{WHITE}{NUM}%{UP_ARROW}{DOWN_ARROW}
STR_PERCENT_UP_DOWN :{WHITE}{NUM}%{UP_ARROW}{DOWN_ARROW}
+STR_PERCENT_NONE_SMALL :{TINY_FONT}{WHITE}{NUM}%
+STR_PERCENT_NONE :{WHITE}{NUM}%
# Income 'floats'
STR_INCOME_FLOAT_COST_SMALL :{TINY_FONT}{RED}Cost: {CURRENCY_LONG}
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index fce09cb4a..043d1d33f 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1259,6 +1259,8 @@ uint8 CalcPercentVehicleFilled(const Vehicle *v, StringID *colour)
if (colour != NULL) {
if (unloading == 0 && loading) {
*colour = STR_PERCENT_UP;
+ } else if (unloading == 0 && !loading) {
+ *colour = STR_PERCENT_NONE;
} else if (cars == unloading || !loading) {
*colour = STR_PERCENT_DOWN;
} else {