Update client to consider timestamp.

This commit is contained in:
2023-07-12 01:12:18 +01:00
parent fa7cf4b3bc
commit 350405da1c
4 changed files with 14 additions and 6 deletions

View File

@ -2,6 +2,7 @@
#define CSPT_STATE_H
#include <time.h>
#include <stdbool.h>
#include <sys/time.h>
#include <netinet/in.h>
struct clientMovement
{
@ -17,7 +18,7 @@ struct clientInput
struct gameState
{
time_t timestamp;
struct timeval timestamp;
struct clientMovement clients[16];
};