summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Lopez Seijas <jorginho@riseup.net>2016-11-28 20:53:37 +0100
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-11-29 17:39:24 -0300
commit13f8589c8879382989ef1696d72ed437805ec399 (patch)
treed1398ccadfb73689729df39ab188f9fd505d34bb
parent97ee8ee8489521c78b5f314fed44d32886db6fe7 (diff)
Minor fix in animation.lua
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua5
1 files changed, 4 insertions, 1 deletions
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