summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2020-06-27 15:13:13 +0100
committerCharles Pigott <charlespigott@googlemail.com>2020-06-28 00:00:28 +0100
commit218db00c4c75d0452dd76996a1925775ebdc4e70 (patch)
tree16be49063e58ad2f890cc963a3003d719a9cef3b
parent1bc7047af724f9d6282f7cc79289ecdffe084d1c (diff)
downloadopenttd-218db00c4c75d0452dd76996a1925775ebdc4e70.tar.xz
Fix #8216: Don't show floating text on autoreplace if cost is 0
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 72ef5a31a..30ac096b4 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1045,7 +1045,7 @@ void CallVehicleTicks()
if (!IsLocalCompany()) continue;
- if (res.Succeeded()) {
+ if (res.Succeeded() && res.GetCost() != 0) {
ShowCostOrIncomeAnimation(x, y, z, res.GetCost());
continue;
}