mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-25 13:41:21 +00:00
Removed levelTime from main
This commit is contained in:
parent
cd4bf52aea
commit
a2808f3130
2 changed files with 1 additions and 10 deletions
|
@ -119,7 +119,7 @@ function commands.log(clientId, command, cmdArguments)
|
|||
local fileDescriptor = files.open(et.trap_Cvar_Get("g_logAdmin"), et.FS_APPEND)
|
||||
|
||||
local logLine
|
||||
local levelTime = wolfa_getLevelTime() / 1000
|
||||
local levelTime = et.trap_Milliseconds() / 1000
|
||||
|
||||
local clientGUID = clientId and players.getGUID(clientId) or "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
|
||||
local clientName = clientId and players.getName(clientId) or "console"
|
||||
|
|
|
@ -49,14 +49,7 @@ local basepath = nil
|
|||
local homepath = nil
|
||||
local luapath = nil
|
||||
|
||||
-- game related data
|
||||
local currentLevelTime = nil
|
||||
|
||||
-- need to do this somewhere else
|
||||
function wolfa_getLevelTime()
|
||||
return currentLevelTime
|
||||
end
|
||||
|
||||
function wolfa_getVersion()
|
||||
return version
|
||||
end
|
||||
|
@ -119,8 +112,6 @@ function et_InitGame(levelTime, randomSeed, restartMap)
|
|||
|
||||
outputDebug("Module "..wolfa_getVersion().." ("..wolfa_getRelease()..") loaded successfully. Created by Timo 'Timothy' Smit.")
|
||||
|
||||
currentLevelTime = levelTime
|
||||
|
||||
events.trigger("onGameInit", levelTime, randomSeed, (restartMap == 1))
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue