From 13f8589c8879382989ef1696d72ed437805ec399 Mon Sep 17 00:00:00 2001 From: Jorge Lopez Seijas Date: Mon, 28 Nov 2016 20:53:37 +0100 Subject: Minor fix in animation.lua --- .../scripts/bola/animation.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game') diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua index 8d955d3..f432a5a 100644 --- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua +++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua @@ -11,10 +11,13 @@ function animationModule.animation(dt) game = { animation = function(start, frames, loop, restart) - if restart == true then + --[[if restart == true then start = start - start + 1 elseif restart == false or restart == nil then start = start + end--]] + if restart == true then + start = 1 end if math.floor(start) > frames then if loop > 0 then -- cgit v1.2.3-54-g00ecf