summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-11-05 13:21:22 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2023-11-05 13:21:22 +0100
commitdc81516d860885e7e6b75c4ad978a09a2efb705d (patch)
treeba90215f2aed47f4688e8c91924e6463fca1beda /src/game.c
parent812da60594a9371b6883acacfd10b6be50673b4a (diff)
bullet cone
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index ded72e7..1f71495 100644
--- a/src/game.c
+++ b/src/game.c
@@ -116,6 +116,8 @@ static void rotate_user(platform_window* window, protocol_user_look *message) {
p->gunx = p->playerx + message->gunx;
p->guny = p->playery + message->guny;
+ p->dirx = message->dirx;
+ p->diry = message->diry;
}
static void set_ping_for_player(protocol_generic_message* msg) {