Skip to content

Commit

Permalink
Remove virtualized player/bot list in results
Browse files Browse the repository at this point in the history
  • Loading branch information
RattleSN4K3 committed Sep 25, 2024
1 parent a183ae1 commit 1f44cff
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions protocols/renegadex.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ export default class renegadex extends Core {
if (serverInfo.NamePrefix) emptyPrefix = serverInfo.NamePrefix + ' '
const servername = `${emptyPrefix}${serverInfo.Name}`
const numplayers = serverInfo.Players || 0
const numbots = serverInfo.Bots || 0
const variables = serverInfo.Variables || {}

state.name = servername
Expand All @@ -211,10 +210,6 @@ export default class renegadex extends Core {
state.numplayers = numplayers
state.maxplayers = variables['Player Limit'] || 0

// due to master server not providing bot/player list, and standard result has no bot count, add list with dummy values
state.players = Array.from(new Array(numplayers).keys(), (i) => ({ name: `Player #${i + 1}`, raw: {} }))
state.bots = Array.from(new Array(numbots).keys(), (i) => ({ name: `Bot #${i + 1}`, raw: {} }))

state.raw = variables
state.version = serverInfo['Game Version']
}
Expand Down

0 comments on commit 1f44cff

Please sign in to comment.