You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symptoms.
When opening NetworkGameWindow for the first time the name of the "last joined" server may be empty even for a few seconds. It looks like there is no item at all on the list, but it's there, we can select it. Related problem is that the "last joined" server information is not being refreshed immediately.
Cause.
When adding a server to the list of network games, the name (NetworkGameInfo::server_name) is empty initially (so nothing is displayed in the GUI). It gets filled up with the address of the server when sending a query for game information (NetworkUDPQueryServer). The first query is not being send immediately. Adding an item through NetworkGameListAddItem doesn't send one. We must wait until NetworkGameListRequery occurs (until requery counter reaches REQUERY_EVERY_X_GAMELOOPS).
Possible solution.
Make NetworkUDPQueryServer happen right after opening NetworkGameWindow.
Possible implementation.
Call NetworkUDPQueryServer right after adding the "last joined" server, in the NetworkGameList constructor (patch attached).
adf88 opened the ticket and wrote:
Attachments
Reported version: trunk
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/5097
The text was updated successfully, but these errors were encountered: