Skip to content

Commit

Permalink
Display correct values for Output_Waste_by_Distance
Browse files Browse the repository at this point in the history
The `Output_Waste_by_Distance' values shown in the help dialog were
100 times too high.

Closes #2434.
  • Loading branch information
blabber committed Nov 5, 2024
1 parent befbcc6 commit 844807a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common/effects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 844807a

Please sign in to comment.