@@ -579,7 +579,7 @@ void ShowEstimatedCostOrIncome(Money cos
}
/**
* Display animated income or costs on the map.
* Display animated income or costs on the map. Does nothing if cost is zero.
* @param x World X position of the animation location.
* @param y World Y position of the animation location.
* @param z World Z position of the animation location.
@@ -587,6 +587,9 @@ void ShowEstimatedCostOrIncome(Money cos
*/
void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost)
{
if (cost == 0) {
return;
Point pt = RemapCoords(x, y, z);
StringID msg = STR_INCOME_FLOAT_COST;