From 58f5e0a9aeecf6f252ad1c0ae2dbff9ddb96c743 Mon Sep 17 00:00:00 2001 From: Tobias Rehbein Date: Tue, 5 Nov 2024 18:19:09 +0100 Subject: [PATCH] Display correct values for Output_Waste_by_Distance The `Output_Waste_by_Distance' values shown in the help dialog were 100 times too high. Closes #2434. --- common/effects.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/effects.cpp b/common/effects.cpp index bb54a9f954..c43c174742 100644 --- a/common/effects.cpp +++ b/common/effects.cpp @@ -1167,8 +1167,10 @@ QString effect_type_unit_text(effect_type type, int value) float factor = 1.0f + value / 1000.0f; return QString(PL_("**%1", "**%1", factor)).arg(factor); } - case EFT_OUTPUT_WASTE_BY_DISTANCE: - return QString(PL_("%1%/tile", "%1%/tile", value)).arg(value); + case EFT_OUTPUT_WASTE_BY_DISTANCE: { + float waste = value / 100.0f; + return QString(PL_("%1%/tile", "%1%/tile", waste)).arg(waste); + } case EFT_CITY_BUILD_SLOTS: return QString(PL_("%1 slot", "%1 slots", value)).arg(value); case EFT_MAX_TRADE_ROUTES: