From 0f07ea9e373acb3a0fa38664fe275fd75c9df1d1 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 5 Apr 2023 15:00:47 +1000 Subject: [PATCH] - Fix skip size in `SkipTicCmd()` missed during 8bfcb8c939649db0a59a6720039df4ebad934f17. --- source/core/d_protocol.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/d_protocol.cpp b/source/core/d_protocol.cpp index 1cc0e5d2d..be7c8196e 100644 --- a/source/core/d_protocol.cpp +++ b/source/core/d_protocol.cpp @@ -295,8 +295,8 @@ int SkipTicCmd (uint8_t **stream, int count) skip = 1; if (*flow & UCMDF_PITCH) skip += 4; if (*flow & UCMDF_YAW) skip += 4; - if (*flow & UCMDF_FORWARDMOVE) skip += 2; - if (*flow & UCMDF_SIDEMOVE) skip += 2; + if (*flow & UCMDF_FORWARDMOVE) skip += 4; + if (*flow & UCMDF_SIDEMOVE) skip += 4; if (*flow & UCMDF_UPMOVE) skip += 4; if (*flow & UCMDF_ROLL) skip += 4; if (*flow & UCMDF_BUTTONS) skip += 4;