mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
cleanup
This commit is contained in:
parent
e485aedc8e
commit
0dfc87700d
3 changed files with 6 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
local ALMOST_HUGE = animation.ALMOST_HUGE
|
||||
local MAX_DURATION = animation.MAX_DURATION
|
||||
|
||||
local rig = entity.skeleton
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ local function update(delta)
|
|||
if state.track and intensity > 0.0 then
|
||||
state.track.func(
|
||||
rig,
|
||||
state.timer % math.min(ALMOST_HUGE, state.track.duration),
|
||||
state.timer % math.min(MAX_DURATION, state.track.duration),
|
||||
intensity * state.max_intencity
|
||||
)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue