mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-25 05:31:41 +00:00
fix sprees not being shown/updated (issue #50)
This commit is contained in:
parent
776695b074
commit
b2e68bd99c
2 changed files with 4 additions and 4 deletions
|
@ -112,10 +112,10 @@ end
|
|||
events.handle("onClientConnect", sprees.onconnect)
|
||||
|
||||
function sprees.ongamestatechange(gameState)
|
||||
if gameState == constants.GAME_RUNNING then
|
||||
if gameState == constants.GAME_STATE_RUNNING then
|
||||
events.handle("onPlayerDeath", sprees.ondeath)
|
||||
events.handle("onPlayerRevive", sprees.onrevive)
|
||||
elseif gameState == constants.GAME_INTERMISSION then
|
||||
elseif gameState == constants.GAME_STATE_INTERMISSION then
|
||||
if currentRecords["ksrecord"] and currentRecords["ksrecord"] > 0 then
|
||||
if db.getrecord(currentMapId, constants.RECORD_KILL) then
|
||||
db.updaterecord(currentMapId, os.time(), constants.RECORD_KILL, currentRecords["ksrecord"], currentRecords["ksplayer"])
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
|
||||
local constants = {}
|
||||
|
||||
constants.GAME_RUNNING = 0
|
||||
constants.GAME_WARMUP = 1
|
||||
constants.GAME_STATE_RUNNING = 0
|
||||
constants.GAME_STATE_WARMUP = 1
|
||||
constants.GAME_STATE_INTERMISSION = 3
|
||||
|
||||
constants.COLOR_MAIN = "^7"
|
||||
|
|
Loading…
Reference in a new issue