The International Simutrans Forum

Development => Bug Reports => Topic started by: Nazalassa on April 21, 2025, 07:42:19 AM

Title: r11682: convoi freight list no longer changes after loading/unloading freight
Post by: Nazalassa on April 21, 2025, 07:42:19 AM
This bug only seems to be present in r11682, after the addition of the "via owner" freight sort mode and the subsequent reorganization of the freight sorting code.

When the freight sort mode is set to "amount" or "via (amount)" (and only when it is in one of these modes), the freight list will not update when freight is loaded/unloaded from a convoi.

Steps to reproduce:

Expected results:
The freight listed in the info window should change so as to reflect the contents of the convoi.

Observed results:
The freight list does not change if the sort mode is either "amount" or "via (amount)". (Else it will work normally.)

Notes:
The freight list does change when switching to the Schedule tab, or when changing the freight sorting order. It does not change when switching to the Chart or Vehicle details tab.

This bug does not seem to occur for halts.
Title: Re: r11682: convoi freight list no longer changes after loading/unloading freight
Post by: prissi on April 22, 2025, 03:35:29 AM
Ok, found a wrong assignment in r11683.
Title: Re: r11682: convoi freight list no longer changes after loading/unloading freight
Post by: Nazalassa on April 22, 2025, 10:12:34 AM
Sorry to bring in more bugs: as of r11683, when a convoi's window is opened and closed afterwards, its freight list is no longer shown when it is subsequently reopened.
This seems to also affect halts although it's rather hard to reproduce on them since their freight list gets updated more often.
Title: Re: r11682: convoi freight list no longer changes after loading/unloading freight
Post by: prissi on April 23, 2025, 01:20:44 PM
Sorru, indeed. r11684 should address this as well.