afkcam: ensure the afkcam won't get started twice

This commit is contained in:
shagu
2022-03-23 00:52:29 +01:00
parent f70e2702bc
commit 913571e36b
+1
View File
@@ -119,6 +119,7 @@ pfUI:RegisterModule("afkcam", "vanilla:tbc", function ()
end)
function afkcam:start()
if afkcam._spinning then return end
afkcam._speed = GetCVar("cameraYawMoveSpeed")
afkcam._ownname = GetCVar("UnitNameOwn")
afkcam._ui_visible = UIParent:IsVisible()