Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fogleman committed Jan 29, 2014
1 parent fca7d9c commit ba4cf5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.c
Expand Up @@ -2529,7 +2529,9 @@ int main(int argc, char **argv) {
// FRAME RATE //
update_fps(&fps);
double now = glfwGetTime();
double dt = MIN(now - previous, 0.2);
double dt = now - previous;
dt = MIN(dt, 0.2);
dt = MAX(dt, 0.0);
previous = now;

// HANDLE MOUSE INPUT //
Expand Down

0 comments on commit ba4cf5f

Please sign in to comment.