From fafabad0906ff9641b0c6183fda8b07745579dfb Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 8 Mar 2020 22:53:57 +0100 Subject: Linux version --- src/render_sprite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/render_sprite.c') diff --git a/src/render_sprite.c b/src/render_sprite.c index 2ca34c0..195cadc 100644 --- a/src/render_sprite.c +++ b/src/render_sprite.c @@ -55,11 +55,11 @@ static void draw_stripe_pixels(t_state *state, t_sprite_state *sstate, static void draw_stripe(t_state *state, t_sprite_state *sstate, int stripe) { int tex_width; - int tex_height; + /* int tex_height; */ int tex_x; tex_width = state->textures[TEX_SPRITE].width; - tex_height = state->textures[TEX_SPRITE].height; + /* tex_height = state->textures[TEX_SPRITE].height; */ tex_x = (int)(256 * (stripe - (-sstate->sprite_width / 2 + sstate->sprite_window_x)) * tex_width / sstate->sprite_width) / 256; -- cgit