Skip to content

Commit

Permalink
don't use ceil
Browse files Browse the repository at this point in the history
  • Loading branch information
gafferongames committed Dec 22, 2023
1 parent 85805dc commit 8ecf490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -7211,7 +7211,7 @@ void test_client_server_keep_alive()

// pump the client and server long enough that they would timeout without keep alive packets

int num_iterations = (int) ceil( 1.25f * TEST_TIMEOUT_SECONDS / delta_time );
int num_iterations = (int) ( 1.25f * TEST_TIMEOUT_SECONDS / delta_time ) + 1;

int i;
for ( i = 0; i < num_iterations; ++i )
Expand Down

0 comments on commit 8ecf490

Please sign in to comment.