Skip to content

Commit

Permalink
Change: Show rating in station list even with no cargo waiting. (#11540)
Browse files Browse the repository at this point in the history
e745bd9 (r21144) changed the filter from cargo waiting to rating, which makes the station list display appear inconsistent with the cargo filter selection.
  • Loading branch information
PeterN committed Dec 4, 2023
1 parent db65d76 commit e749bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/station_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ class CompanyStationsWindow : public Window
/* 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
Expand Down

0 comments on commit e749bbe

Please sign in to comment.