Ticket #3040: less_lobby_updates_v1.patch

File less_lobby_updates_v1.patch, 726 bytes (added by elexis, 8 years ago)
  • binaries/data/mods/public/gui/session/session.js

    function showTimeWarpMessageBox()  
    10431043/**
    10441044 * Send a report on the gamestatus to the lobby.
    10451045 */
    10461046function reportGame()
    10471047{
    1048     if (!Engine.HasXmppClient() || !Engine.IsRankedGame())
     1048    // Only 1v1 games are rated (and Gaia is part of g_Players)
     1049    if (!Engine.HasXmppClient() || !Engine.IsRankedGame() || g_Players.length != 3)
    10491050        return;
    10501051
    10511052    let extendedSimState = Engine.GuiInterfaceCall("GetExtendedSimulationState");
    10521053
    10531054    let unitsClasses = [