aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/AnimatorSystem.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 20:05:02 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 20:05:02 +0100
commitec69f40540317215d0f30e1f8e43d0e18450f8cc (patch)
tree1468a8d5bbf4a8800cee89c9e114d09348fa88bb /src/crepe/system/AnimatorSystem.cpp
parenta600cc55468a6513743ce916aa3da129270c23f0 (diff)
`make format`loek/game
Diffstat (limited to 'src/crepe/system/AnimatorSystem.cpp')
-rw-r--r--src/crepe/system/AnimatorSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/system/AnimatorSystem.cpp b/src/crepe/system/AnimatorSystem.cpp
index 467d2a2..6c93372 100644
--- a/src/crepe/system/AnimatorSystem.cpp
+++ b/src/crepe/system/AnimatorSystem.cpp
@@ -30,7 +30,7 @@ void AnimatorSystem::frame_update() {
if (animator.elapsed > frame_duration) {
animator.elapsed = 0ms;
animator.data.frame++;
-
+
if (animator.data.looping && animator.data.frame >= animator.data.cycle_end)
animator.data.frame = animator.data.cycle_start;
}