mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-11-04 09:04:04 +00:00
JOIN button now pulls up a dialog with the auto selected game server to confirm player wants to join that server; TODO: If only one server exists then join that one directly, if multiple exist the offer the 'best' three or something, don't crash if we somehow get a server update without the server list being nil
This commit is contained in:
@@ -21,6 +21,7 @@ module W3DHubLauncher
|
||||
if existing_game_server
|
||||
MemCache[:servers][MemCache[:servers].index(existing_game_server)] = game_server
|
||||
else
|
||||
MemCache[:servers] ||= []
|
||||
MemCache[:servers] << game_server
|
||||
end
|
||||
end
|
||||
@@ -32,6 +33,7 @@ module W3DHubLauncher
|
||||
if existing_game_server
|
||||
MemCache[:servers][MemCache[:servers].index(existing_game_server)] = game_server
|
||||
else
|
||||
MemCache[:servers] ||= []
|
||||
MemCache[:servers] << game_server
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user