Make t local
This commit is contained in:
parent
9e4a8b1915
commit
4bc128788f
@ -163,7 +163,7 @@ local frameSec = 0
|
|||||||
local lastSec = 0
|
local lastSec = 0
|
||||||
function trackFps()
|
function trackFps()
|
||||||
frameSec = frameSec + 1
|
frameSec = frameSec + 1
|
||||||
t = engine_time_get()
|
local t = engine_time_get()
|
||||||
if t - lastSec >= 1000 then
|
if t - lastSec >= 1000 then
|
||||||
framerate = frameSec
|
framerate = frameSec
|
||||||
lastSec = t
|
lastSec = t
|
||||||
|
Loading…
Reference in New Issue
Block a user