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
|
||||
let an = assetAnimations ud Map.! asId stat
|
||||
ntime = asElapsedTime stat + dt
|
||||
nstate = if ntime > fromIntegral (asCurrentFrame stat) *
|
||||
nstate = if ntime > fromIntegral (asCurrentFrame stat + 1) *
|
||||
(animDuration an / fromIntegral (length $ animSprites an))
|
||||
then
|
||||
let nframe = asCurrentFrame stat + 1
|
||||
|
|
Loading…
Reference in a new issue