Merge branch 'main' of https://github.com/mohsenemx/FXclient
commit
5fba0336a0
|
@ -300,7 +300,7 @@ const playerList = new (function () {
|
||||||
let listContent = `<h3>Players (${gHumans})</h3>`;
|
let listContent = `<h3>Players (${gHumans})</h3>`;
|
||||||
for (let i = 0; i < gLobbyMaxJoin; i++) {
|
for (let i = 0; i < gLobbyMaxJoin; i++) {
|
||||||
if (i === gHumans) listContent += `<h3>Bots (${gLobbyMaxJoin - gHumans})</h3>`;
|
if (i === gHumans) listContent += `<h3>Bots (${gLobbyMaxJoin - gHumans})</h3>`;
|
||||||
listContent += `<tr data-player-id="${i}"><td><span class="color-light-gray">${i}.</span> ${escapeHtml(playerNames[i])}</td></tr>`
|
listContent += `<tr data-player-id="${i}"><td><span class="color-light-gray">${i + 1}.</span> ${escapeHtml(playerNames[i])}</td></tr>`
|
||||||
}
|
}
|
||||||
document.getElementById("playerlist_content").innerHTML = listContent;
|
document.getElementById("playerlist_content").innerHTML = listContent;
|
||||||
document.getElementById("playerlist_content").setAttribute("class", getVar("gIsTeamGame") ? "clickable" : "");
|
document.getElementById("playerlist_content").setAttribute("class", getVar("gIsTeamGame") ? "clickable" : "");
|
||||||
|
|
Loading…
Reference in New Issue