Skip to content

Commit 821d5bd

Browse files
committed
freecam: Fix lint warnings
1 parent 0f857bc commit 821d5bd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

[editor]/freecam/freecam.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ local controlToKey = {
4040
["vehicle_right"] = "d",
4141
}
4242

43-
local mouseFrameDelay = 0
44-
4543
local mta_getKeyState = getKeyState
4644
function getKeyState(key)
4745
if isMTAWindowActive() then
@@ -221,7 +219,6 @@ end
221219
-- Internal state (module-level)
222220
local mouseFrameDelay = 0 -- frames to ignore after cursor/window toggles
223221
local accumDX, accumDY = 0, 0 -- accumulated raw mouse deltas (pixels)
224-
local lastEventTick = 0
225222
local PI, RAD = math.pi, math.pi / 180
226223

227224
-- Tunables (adjust to taste)
@@ -281,7 +278,6 @@ function freecamMouse(cX, cY, aX, aY)
281278
-- Accumulate; application to rot happens in freecamMouseApply() every frame
282279
accumDX = accumDX + dx
283280
accumDY = accumDY + dy
284-
lastEventTick = getTickCount()
285281
end
286282

287283
function freecamMouseApply(deltaTime)

0 commit comments

Comments
 (0)