Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/lobby/lobby.js
Show First 20 Lines • Show All 1,248 Lines • ▼ Show 20 Lines | function joinSelectedGame() | ||||
Engine.PushGuiPage("page_gamesetup_mp.xml", { | Engine.PushGuiPage("page_gamesetup_mp.xml", { | ||||
"multiplayerGameType": "join", | "multiplayerGameType": "join", | ||||
"ip": ip, | "ip": ip, | ||||
"port": port, | "port": port, | ||||
"name": g_Username, | "name": g_Username, | ||||
"rating": getRejoinRating(game), | "rating": getRejoinRating(game), | ||||
"useSTUN": !!game.stunIP, | "useSTUN": !!game.stunIP, | ||||
"hostJID": game.hostUsername + "@" + g_LobbyServer + "/0ad" | "hostJID": game.hostJID | ||||
}); | }); | ||||
} | } | ||||
/** | /** | ||||
* Rejoin games with the original playername, even if the rating changed meanwhile. | * Rejoin games with the original playername, even if the rating changed meanwhile. | ||||
*/ | */ | ||||
function getRejoinRating(game) | function getRejoinRating(game) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 327 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator