From 89984db7afa433e2842c4ef8c8c265a3e3993636 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 16 Dec 2022 23:21:47 +0100 Subject: work --- src/players.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/players.c') diff --git a/src/players.c b/src/players.c index 5509067..7244cc4 100644 --- a/src/players.c +++ b/src/players.c @@ -180,8 +180,8 @@ void take_player_input(platform_window* window) { dirx /= length; diry /= length; - float gun_offset_x = (get_player_size_in_tile()/2) + dirx/2; - float gun_offset_y = (get_player_size_in_tile()/2) + diry/2; + float gun_offset_x = (get_player_size_in_tile()/2) + dirx; + float gun_offset_y = (get_player_size_in_tile()/2) + diry; p->gunx = p->playerx + gun_offset_x; p->guny = p->playery + gun_offset_y; -- cgit v1.2.3-70-g09d2