summaryrefslogtreecommitdiff
path: root/src/throwables.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-12-26 16:04:38 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2023-12-26 16:04:38 +0100
commitd018848939d1101df21515cb81f611f23c119d10 (patch)
tree02b7bcdc876de586d5fdce9ff92f0d01f670d4db /src/throwables.c
parentef471c71e0da0269ed2a924eaae991ac2d0cfa20 (diff)
body
Diffstat (limited to 'src/throwables.c')
-rw-r--r--src/throwables.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/throwables.c b/src/throwables.c
index a950080..2ed5133 100644
--- a/src/throwables.c
+++ b/src/throwables.c
@@ -258,9 +258,10 @@ void draw_throwables(platform_window* window) {
explode_location.y -= explosion_size.y/2;
box box = get_render_box_of_square(window, explode_location, explosion_size);
- sprite_frame frame = sprite_get_frame(&throwables[i].sprite);
+ image* img = get_throwable_explosion_from_type(t.type);
+ sprite_frame frame = sprite_get_frame(img, &throwables[i].sprite);
- renderer->render_image_quad_partial(get_throwable_explosion_from_type(t.type),
+ renderer->render_image_quad_partial(img,
box.tl_u.x, box.tl_u.y,
box.bl_d.x, box.bl_d.y,
box.br_d.x, box.br_d.y,