off by one error
This commit is contained in:
parent
33d808b240
commit
731e3d2744
1 changed files with 1 additions and 1 deletions
|
@ -428,7 +428,7 @@ updateMap dt = do
|
||||||
stat <- query anim
|
stat <- query anim
|
||||||
let an = assetAnimations ud Map.! asId stat
|
let an = assetAnimations ud Map.! asId stat
|
||||||
ntime = asElapsedTime stat + dt
|
ntime = asElapsedTime stat + dt
|
||||||
nstate = if ntime > fromIntegral (asCurrentFrame stat) *
|
nstate = if ntime > fromIntegral (asCurrentFrame stat + 1) *
|
||||||
(animDuration an / fromIntegral (length $ animSprites an))
|
(animDuration an / fromIntegral (length $ animSprites an))
|
||||||
then
|
then
|
||||||
let nframe = asCurrentFrame stat + 1
|
let nframe = asCurrentFrame stat + 1
|
||||||
|
|
Loading…
Reference in a new issue