mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: [Network] don't show GameScript " (v0)" for old servers (#9507)
Old servers don't tell the GameScript they are running, so nothing should be shown. All values in NetworkGameInfo initialize as 0/empty, except for GS version. Someone has to be different from the rest, I guess.
This commit is contained in:
parent
93fd42b0c3
commit
0d26359b5b
|
@ -43,6 +43,7 @@ NetworkGameList *NetworkGameListAddItem(const std::string &connection_string)
|
|||
}
|
||||
|
||||
item = new NetworkGameList(resolved_connection_string);
|
||||
item->info.gamescript_version = -1;
|
||||
item->version = _network_game_list_version;
|
||||
|
||||
if (prev_item == nullptr) {
|
||||
|
|
Loading…
Reference in New Issue