Prevent possible bug with innacurate tick

main
Cameron Murphy Reikes 2 years ago
parent 821c98e876
commit 0c53810aa5

@ -572,6 +572,7 @@ void process(struct GameState *gs, float dt)
{ {
assert(gs->space != NULL); assert(gs->space != NULL);
assert(dt == TIMESTEP); // @TODO fix tick being incremented every time
gs->tick += 1; gs->tick += 1;
gs->time += dt; gs->time += dt;

Loading…
Cancel
Save