Fixed error in 7.2 where a cvar has been removed

This commit is contained in:
Parnic
2017-03-25 14:03:47 -05:00
parent a739b7ba99
commit 94850e53dd
2 changed files with 8 additions and 2 deletions

View File

@ -358,7 +358,10 @@ end
function CastBar.prototype:CVarUpdate(...)
self.useFixedLatency = self.moduleSettings.respectLagTolerance and GetCVar("reducedLagTolerance") == "1"
self.fixedLatency = tonumber(GetCVar("maxSpellStartRecoveryoffset")) / 1000
local recoveryOffset = GetCVar("maxSpellStartRecoveryoffset")
if recoveryOffset ~= nil then
self.fixedLatency = tonumber(recoveryOffset) / 1000
end
end
function CastBar.prototype:Disable(core)

View File

@ -45,7 +45,10 @@ end
function GlobalCoolDown.prototype:CVarUpdate()
self.useFixedLatency = self.moduleSettings.respectLagTolerance and GetCVar("reducedLagTolerance") == "1"
self.fixedLatency = tonumber(GetCVar("maxSpellStartRecoveryoffset")) / 1000.0
local recoveryOffset = GetCVar("maxSpellStartRecoveryoffset")
if recoveryOffset ~= nil then
self.fixedLatency = tonumber(recoveryOffset) / 1000.0
end
end
-- OVERRIDE