aboutsummaryrefslogtreecommitdiff
path: root/src/sprite.odin
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-02-14 18:02:47 -0500
committeriamcheeseman <[hidden email]>2026-02-14 18:02:47 -0500
commit93c27830060788dea1c364465d29e44d05a3064e (patch)
tree4a8e1f6628026a4fb82c8a1c6084f2e35750cc28 /src/sprite.odin
parent1ff729f696c895f81f0cf0d1b8a2cca1d6e43eb8 (diff)
Only process keys that are bound to an action
Diffstat (limited to 'src/sprite.odin')
-rw-r--r--src/sprite.odin4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sprite.odin b/src/sprite.odin
index 4d82813..da236e7 100644
--- a/src/sprite.odin
+++ b/src/sprite.odin
@@ -24,7 +24,7 @@ init_sprite :: proc(
sprite: ^Sprite,
image_id: Image_Id,
anim_id: Maybe(Animation_Id) = nil,
-) -> bool {
+) {
sprite.image = get_image(image_id)
switch id in anim_id {
@@ -40,8 +40,6 @@ init_sprite :: proc(
sprite.height = i32(sprite.image.size.y)
sprite.scale = Vec2{1, 1}
-
- return true
}
set_sprite_active_tag :: proc(sprite: ^Sprite, tag_name: string) {