mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-08 16:05:48 -07:00
Only send a gamereport to the lobbybot for 1v1s (as only those are rated), fixes #3040.
This was SVN commit r18018.
This commit is contained in:
parent
5ac76ecf89
commit
649cc82ff1
1 changed files with 2 additions and 1 deletions
|
|
@ -1045,7 +1045,8 @@ function showTimeWarpMessageBox()
|
|||
*/
|
||||
function reportGame()
|
||||
{
|
||||
if (!Engine.HasXmppClient() || !Engine.IsRankedGame())
|
||||
// Only 1v1 games are rated (and Gaia is part of g_Players)
|
||||
if (!Engine.HasXmppClient() || !Engine.IsRankedGame() || g_Players.length != 3)
|
||||
return;
|
||||
|
||||
let extendedSimState = Engine.GuiInterfaceCall("GetExtendedSimulationState");
|
||||
|
|
|
|||
Loading…
Reference in a new issue