From bef28ab428ff3ec613275f5ed8c964247ace584f Mon Sep 17 00:00:00 2001 From: Karin Date: Thu, 30 May 2024 20:25:11 +0800 Subject: [PATCH] Make move type is signed char If as unsigned char, always move forward and right, and speed is faster. --- doomclassic/doom/d_ticcmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doomclassic/doom/d_ticcmd.h b/doomclassic/doom/d_ticcmd.h index 609c08ec..50b261d0 100644 --- a/doomclassic/doom/d_ticcmd.h +++ b/doomclassic/doom/d_ticcmd.h @@ -41,8 +41,8 @@ If you have questions concerning this license or the applicable additional terms // plus a checksum for internal state consistency. typedef struct { - char forwardmove; // *2048 for move - char sidemove; // *2048 for move + signed char forwardmove; // *2048 for move + signed char sidemove; // *2048 for move short angleturn; // <<16 for angle delta short consistancy; // checks for net game byte buttons;