From e749bbefe5951c727325e1c57b5d1b637d6fe04a Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 4 Dec 2023 18:16:09 +0000 Subject: [PATCH] Change: Show rating in station list even with no cargo waiting. (#11540) e745bd9 (r21144) changed the filter from cargo waiting to rating, which makes the station list display appear inconsistent with the cargo filter selection. --- src/station_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 164c8fcfd5..cdf0588fcc 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -487,7 +487,7 @@ public: /* show cargo waiting and station ratings */ for (const CargoSpec *cs : _sorted_standard_cargo_specs) { CargoID cid = cs->Index(); - if (st->goods[cid].cargo.TotalCount() > 0) { + if (st->goods[cid].HasRating()) { /* For RTL we work in exactly the opposite direction. So * decrement the space needed first, then draw to the left * instead of drawing to the left and then incrementing