Make move type is signed char

If as unsigned char, always move forward and right, and speed is faster.
This commit is contained in:
Karin 2024-05-30 20:25:11 +08:00 committed by GitHub
parent 2c9d4e0b14
commit bef28ab428
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;