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
In the multiplayer lobby, I can only enter the currently highlighted game. Clicking on different games changes which is highlighted, of course, but the "join" and "observe" for different games will enter the currently selected one.
The text was updated successfully, but these errors were encountered:
This fixes#2121.
This code was an absolute mess. It relied entirely on finding games by-index, despite there also
being a simple function in lobby_data to get a game by id. I had even written code to take an id,
find a game_info ptr, then search the games vector for a match, get an index, and then use that
index to access the games vector later :| *facepalm*
Binding indices with callbacks meant certain callbacks such as the list double click handler needed
to be constantly re-added. We also had no bounds checking in said callback. And for some reason, the
inline join/observe buttons were handled by the same code as their global counterparts (#2121).
Just... a mess. Now we can directly handle joining by either index or game id directly. The former
is now only used for the global join/observe buttons' callback, but it could potentially be used
with the plugin context code, if applicable. It depends on whether the plugin data has an index key.
For wesnoth 1.13.10:
In the multiplayer lobby, I can only enter the currently highlighted game. Clicking on different games changes which is highlighted, of course, but the "join" and "observe" for different games will enter the currently selected one.
The text was updated successfully, but these errors were encountered: