Skip to content

Commit

Permalink
Fix cargo payment graph displaying vanilla vaules despite doubled tim…
Browse files Browse the repository at this point in the history
…e range (fixes #38)
  • Loading branch information
ldpl committed Nov 19, 2024
1 parent f3e427a commit 33a27f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graph_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ struct PaymentRatesGraphWindow : ExcludingCargoBaseGraphWindow {
for (const CargoSpec *cs : _sorted_standard_cargo_specs) {
this->colours[i] = cs->legend_colour;
for (uint j = 0; j != this->num_on_x_axis; j++) {
this->cost[i][j] = GetTransportedGoodsIncome(10, 20, j * 4 + 4, cs->Index());
this->cost[i][j] = GetTransportedGoodsIncome(10, 20, 2 * (j * 4 + 4), cs->Index());
}
i++;
}
Expand Down

0 comments on commit 33a27f3

Please sign in to comment.