feat(diagnostics): correlate movement acknowledgements with painted views
This commit is contained in:
@@ -767,8 +767,9 @@ static void handle_game_command(maze32_gateway_t* gateway, const maze32_session_
|
||||
append_json_string(acknowledgement, sizeof(acknowledgement), &length,
|
||||
message->request_id) &&
|
||||
(written = snprintf(prefix, sizeof(prefix),
|
||||
",\"payload\":{\"commandSequence\":%" PRIu32 "}}", command_sequence)) >=
|
||||
0 &&
|
||||
",\"payload\":{\"commandSequence\":%" PRIu32
|
||||
",\"stateSequence\":%" PRIu32 "}}",
|
||||
command_sequence, gateway->game.state_sequence)) >= 0 &&
|
||||
(size_t)written < sizeof(prefix) &&
|
||||
append_text(acknowledgement, sizeof(acknowledgement), &length, prefix)) {
|
||||
enqueue(gateway, session->connection_id, acknowledgement);
|
||||
|
||||
Reference in New Issue
Block a user