From d15e7da7cc8006325a48fb55efeb9c5f3d214195 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Thu, 2 Feb 2023 17:29:39 +0100 Subject: [PATCH] again --- code/foundation/src/packets/pkt_send_keystate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/foundation/src/packets/pkt_send_keystate.c b/code/foundation/src/packets/pkt_send_keystate.c index 04013f6..f616c98 100644 --- a/code/foundation/src/packets/pkt_send_keystate.c +++ b/code/foundation/src/packets/pkt_send_keystate.c @@ -63,7 +63,7 @@ int32_t pkt_send_keystate_handler(pkt_header *header) { i->y = zpl_clamp(table.y, -1.0f, 1.0f); i->mx = table.mx; i->my = table.my; - if (i->x != 0.0f && i->y != 0.0f) { + if (i->x != 0.0f || i->y != 0.0f) { i->hx = i->x; i->hy = i->y; }