aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_sprite_extra.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_draw_sprite_extra.c')
-rw-r--r--src/ft_draw_sprite_extra.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ft_draw_sprite_extra.c b/src/ft_draw_sprite_extra.c
index ba2dac5..c201566 100644
--- a/src/ft_draw_sprite_extra.c
+++ b/src/ft_draw_sprite_extra.c
@@ -59,9 +59,7 @@ void
ft_sort_sprites(cl, -1, -1);
while (++j < cl->big_t_val)
{
- sprite =
- cl->sprites[(int8_t)cl->big_t[j][2]]
- [(int16_t)cl->big_t[j][3]];
+ sprite = cl->sprites[(int8_t)cl->big_t[j][2]][(int32_t)cl->big_t[j][3]];
sprite.current_sprite = (int8_t)cl->big_t[j][1];
sprite.spritey = sprite.s_pos_x - (cl->plist.pos_x - 0.5);
sprite.spritex = sprite.s_pos_y - (cl->plist.pos_y - 0.5);