Differential D3833 Diff 17385 binaries/data/mods/public/gui/gamesetup/Controllers/LobbyGameRegistration.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Controllers/LobbyGameRegistration.js
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | class LobbyGameRegistrationController | ||||
/** | /** | ||||
* Send the relevant game settings to the lobby bot immediately. | * Send the relevant game settings to the lobby bot immediately. | ||||
*/ | */ | ||||
sendImmediately() | sendImmediately() | ||||
{ | { | ||||
if (!g_IsController || !Engine.HasXmppClient()) | if (!g_IsController || !Engine.HasXmppClient()) | ||||
return; | return; | ||||
// Wait until a map has been selected. | |||||
if (!g_GameSettings.map.map) | |||||
return; | |||||
Engine.ProfileStart("sendRegisterGameStanza"); | Engine.ProfileStart("sendRegisterGameStanza"); | ||||
if (this.timer !== undefined) | if (this.timer !== undefined) | ||||
{ | { | ||||
clearTimeout(this.timer); | clearTimeout(this.timer); | ||||
this.timer = undefined; | this.timer = undefined; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator