Skip to content

[Bug]: Incorrect sorting of vehicles by capacity #9584

Closed
@LC-Zorg

Description

@LC-Zorg

Version of OpenTTD

1.11.2 (also earlier)

Expected result

The game correctly sorts vehicles by capacity for the selected cargo (or all cargoes), starting with the vehicle with the highest maximum payload available, and ending with the vehicle with the lowest payload (or inversely) - the game takes into account all vehicle versions.

Actual result

When sorting by load capacity, the game probably takes into account the load capacity for the first version of the vehicle, which in the case of more complex sets results in an inappropriate, looking random order on the list.

The problem is clearly visible with the new Shark 1.0 ship set
sorting problem - shark 1 0

It is similar in the other sets from the FISH series

Another example is in the Polroad set, which generally has some balance issues and may seem overly complex, but the list order is not correct anyway. It's hard to see the sorting logic here.
sorting problem - polroad 50

Steps to reproduce

Description above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions