Removed levelTime from main

This commit is contained in:
Timo Smit 2017-01-18 19:03:47 +01:00
parent cd4bf52aea
commit a2808f3130
2 changed files with 1 additions and 10 deletions

View file

@ -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"

View file

@ -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