From 97504e7c29a94dc64769fa1ccd2eb00176598774 Mon Sep 17 00:00:00 2001 From: Charles Pigott Date: Sat, 27 Jun 2020 15:13:13 +0100 Subject: [PATCH] Fix #8216: Don't show floating text on autoreplace if cost is 0 --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index ae5af64a1a..57650d3009 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; }