From 33a27f33bf3b1103953ece94375a0ebd2fcc1a04 Mon Sep 17 00:00:00 2001 From: dP Date: Tue, 19 Nov 2024 20:11:34 +0500 Subject: [PATCH] Fix cargo payment graph displaying vanilla vaules despite doubled time range (fixes #38) --- src/graph_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 8488359b..8a170aeb 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -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++; }