Added tick numbers.

This commit is contained in:
2023-07-25 23:32:11 +01:00
parent ecec1c5555
commit ac95d80b32
3 changed files with 18 additions and 0 deletions

View File

@ -14,6 +14,14 @@ void updateInput(struct gameState * state, struct clientInput * message)
void doGameTick(struct gameState * state)
{
if ((state->tickNumber % UINT64_MAX) == 0)
{
state->tickNumber = 0;
}
else
{
state->tickNumber++;
}
for (int index = 0; index < 16; index++)
{
// Calculate acceleration: