diff options
| author | Gene Pasquet <dev@etenil.net> | 2026-04-12 23:00:17 +0100 |
|---|---|---|
| committer | Gene Pasquet <dev@etenil.net> | 2026-04-12 23:00:17 +0100 |
| commit | e29143f891ea0f25480c9e2b2c5b765f0b343bff (patch) | |
| tree | 9411ae4be8f3d7523d89ba2d6327d0e4c9f189fe /animation.scm | |
| parent | 893d1b17ef63b7e2e9d4f6c9dd70c07b61c7bc59 (diff) | |
Fix animation test, simplify a let* to a let
Diffstat (limited to 'animation.scm')
| -rw-r--r-- | animation.scm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/animation.scm b/animation.scm index c8f4497..e3e6e89 100644 --- a/animation.scm +++ b/animation.scm @@ -53,10 +53,10 @@ ;; Entities without #:anim-name are returned unchanged. (define (advance-animation entity anim) - (let* ((tick (+ 1 (entity-ref entity #:anim-tick 0))) - (duration (animation-duration anim)) - (frames (animation-frames anim)) - (frame (entity-ref entity #:anim-frame 0))) + (let ((tick (+ 1 (entity-ref entity #:anim-tick 0))) + (duration (animation-duration anim)) + (frames (animation-frames anim)) + (frame (entity-ref entity #:anim-frame 0))) (if (>= tick duration) (let ((new-frame-id (modulo (+ frame 1) (length frames)))) (entity-set-many entity |
