summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-05-12 11:43:57 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-05-12 11:43:57 +0200
commitf73e3661b136d4da4d66ef15b264ec7a958be335 (patch)
tree0fe84a543fee9622cfaa1dfd29714347c2496111 /src/game.c
parent2e04356bbb1d16c0d519156c3bcf201aea291e09 (diff)
new objects
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index fb99e6c..01633bc 100644
--- a/src/game.c
+++ b/src/game.c
@@ -116,7 +116,7 @@ static void rotate_user(platform_window* window, protocol_user_look *message) {
}
p->gunx = p->playerx + message->gunx;
- p->guny = p->playery + message->guny;
+ p->guny = p->playery - 0.5f + message->guny;
p->dirx = message->dirx;
p->diry = message->diry;
}