Skip to content

Commit

Permalink
rework time management (remove NBN_GameClient_AddTime and NBN_GameSer…
Browse files Browse the repository at this point in the history
…ver_AddTime functions)
  • Loading branch information
nathhB committed Sep 18, 2023
1 parent 57eb76c commit f7bbff2
Show file tree
Hide file tree
Showing 11 changed files with 95 additions and 159 deletions.
3 changes: 0 additions & 3 deletions examples/echo/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ int main(int argc, char *argv[])

while (running)
{
// Update client clock
NBN_GameClient_AddTime(dt);

int ev;

// Poll for client events
Expand Down
3 changes: 0 additions & 3 deletions examples/echo/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ int main(void)

while (true)
{
// Update the server clock
NBN_GameServer_AddTime(dt);

int ev;

// Poll for server events
Expand Down
3 changes: 0 additions & 3 deletions examples/echo_bytes/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ int main(int argc, char *argv[])

while (running)
{
// Update client clock
NBN_GameClient_AddTime(dt);

int ev;

// Poll for client events
Expand Down
3 changes: 0 additions & 3 deletions examples/echo_bytes/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ int main(void)

while (true)
{
// Update the server clock
NBN_GameServer_AddTime(dt);

int ev;

// Poll for server events
Expand Down
2 changes: 0 additions & 2 deletions examples/raylib/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,6 @@ void UpdateAndDraw(void)
// Simulates as many ticks as we can
while (acc >= tick_dt)
{
NBN_GameClient_AddTime(tick_dt);

int ev;

while ((ev = NBN_GameClient_Poll()) != NBN_NO_EVENT)
Expand Down
3 changes: 0 additions & 3 deletions examples/raylib/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,6 @@ int main(int argc, char *argv[])

while (running)
{
// Update the server clock
NBN_GameServer_AddTime(tick_dt);

int ev;

// Poll for server events
Expand Down
3 changes: 0 additions & 3 deletions examples/rpc/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ int main(int argc, char *argv[])

while (running)
{
// Update client clock
NBN_GameClient_AddTime(dt);

int ev;

// Poll for client events
Expand Down
3 changes: 0 additions & 3 deletions examples/rpc/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ int main(void)

while (true)
{
// Update the server clock
NBN_GameServer_AddTime(dt);

int ev;

// Poll for server events
Expand Down
Loading

0 comments on commit f7bbff2

Please sign in to comment.