Skip to content

Commit

Permalink
refactor(config/queue): use shared config string for server name (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
D4isDAVID committed Jan 21, 2024
1 parent 9968abe commit 541d492
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/queue.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
local serverName = require 'config.shared'.serverName

return {
---Amount of seconds to wait before removing a player from the queue after disconnecting while waiting.
timeoutSeconds = 30,
Expand Down Expand Up @@ -54,10 +56,9 @@ return {
local size = params.totalQueueSize
local displayTime = params.displayTime

local serverName = GetConvar('sv_projectName', GetConvar('sv_hostname', 'Server'))
local progressAmount = 7 -- amount of progress shown between the queue & server

local playerColumn = pos == 1 and progressAmount or (progressAmount - math.ceil(pos / (size / progressAmount)) + 1)

local progressTextReplacements = {
[1] = {
text = 'Queue',
Expand Down

0 comments on commit 541d492

Please sign in to comment.