From f8e80f326902fda7f8e98f62e79d37b3156a0c11 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 30 Mar 2020 15:46:59 +0200 Subject: Less fat sprites --- src/ft_check_missing_defines.c | 2 +- src/ft_draw_sprite_extra.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ft_check_missing_defines.c b/src/ft_check_missing_defines.c index a25c5ee..932bb93 100644 --- a/src/ft_check_missing_defines.c +++ b/src/ft_check_missing_defines.c @@ -68,7 +68,7 @@ static int ft_check_ext(FT_ENMY_FIRE_PATH, ".xpm") < 0 || ft_check_not_found(FT_ENMY_DEAD_PATH) < 0 || ft_check_ext(FT_ENMY_DEAD_PATH, ".xpm") < 0) - return (ft_missing_error(FT_ERR_MISS_ENMY, clist)) + return (ft_missing_error(FT_ERR_MISS_ENMY, clist)); return (ft_check_missing_number_defines(clist)); } diff --git a/src/ft_draw_sprite_extra.c b/src/ft_draw_sprite_extra.c index 3f0f474..43e69e3 100644 --- a/src/ft_draw_sprite_extra.c +++ b/src/ft_draw_sprite_extra.c @@ -24,7 +24,8 @@ void sprite->drawendy = sprite->spriteheight / 2 + cl->wlist.y_size / 2; if (sprite->drawendy >= (int)cl->wlist.y_size) sprite->drawendy = cl->wlist.y_size - 1; - sprite->spritewidth = abs((int)(cl->wlist.x_size / (sprite->transformy))); + sprite->spritewidth = abs((int)(cl->wlist.x_size / (sprite->transformy))) + * 0.8; sprite->drawstartx = -sprite->spritewidth / 2 + sprite->spritescreenx; if (sprite->drawstartx < 0) sprite->drawstartx = 0; -- cgit v1.2.3