1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 01:35:06 +01:00

Multiplayer: save manually added servers

Adding a server via "Add Server" should handle them
as favorites as otherwise the list is not saved locally and
each server is lost after game restart.

Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
This commit is contained in:
Tobias Kohlbau
2018-01-02 13:04:08 +01:00
committed by Michael Steenbeek
parent 6336e8c719
commit a726f6decd

View File

@@ -350,7 +350,8 @@ static void window_server_list_textinput(rct_window *w, rct_widgetindex widgetIn
case WIDX_ADD_SERVER:
{
std::lock_guard<std::mutex> guard(_mutex);
add_server_entry(text);
server_entry * entry = add_server_entry(text);
entry->favourite = true;
sort_servers();
server_list_save_server_entries();
}