Index: binaries/data/mods/public/gui/lobby/lobby.js =================================================================== --- binaries/data/mods/public/gui/lobby/lobby.js +++ binaries/data/mods/public/gui/lobby/lobby.js @@ -632,7 +632,16 @@ g_SelectedGamePort = g_GameList[gamesBox.selected].port; } - g_GameList = Engine.GetGameList().filter(game => !filterGame(game)).sort((a, b) => { + g_GameList = Engine.GetGameList().map(game => { + + game.observerNumbers = 0; + for (let player of stringifiedTeamListToPlayerData(game.players)) + if (player.Team == "observer") + ++game.observerNumbers; + + return game; + + }).filter(game => !filterGame(game)).sort((a, b) => { let sortA, sortB; switch (sortBy) { @@ -683,7 +692,7 @@ list_mapName.push(translateMapTitle(game.niceMapName)); list_mapSize.push(translateMapSize(game.mapSize)); list_mapType.push(g_MapTypes.Title[mapTypeIdx] || ""); - list_nPlayers.push(game.nbp + "/" + game.maxnbp); + list_nPlayers.push(game.nbp + '/' + game.maxnbp + (game.observerNumbers > 0 ? '[color="0 128 128 128"]+' + game.observerNumbers + '[/color]' : '' )); list.push(gameName); list_data.push(i); }