diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2020-06-27 15:13:13 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-06-28 00:00:28 +0100 |
commit | 218db00c4c75d0452dd76996a1925775ebdc4e70 (patch) | |
tree | 16be49063e58ad2f890cc963a3003d719a9cef3b | |
parent | 1bc7047af724f9d6282f7cc79289ecdffe084d1c (diff) | |
download | openttd-218db00c4c75d0452dd76996a1925775ebdc4e70.tar.xz |
Fix #8216: Don't show floating text on autoreplace if cost is 0
-rw-r--r-- | src/vehicle.cpp | 2 |
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; } |