Skip to content

Commit

Permalink
who needs Windows.h anyways
Browse files Browse the repository at this point in the history
  • Loading branch information
Feeeeddmmmeee committed May 4, 2022
1 parent 675e0d4 commit 41c6636
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions GravitySim/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "Game.h"

#include <Windows.h>

Game* game = nullptr;

int main(int argc, char* argv[])
Expand All @@ -27,7 +25,7 @@ int main(int argc, char* argv[])

frameTime = SDL_GetTicks() - frameStart;

game->currentFPS = min(1000.0f / frameTime, FPS);
game->currentFPS = ((1000.0f / frameTime) > FPS) ? FPS : (1000.0f / frameTime);

if (frameDelay > frameTime)
{
Expand Down

0 comments on commit 41c6636

Please sign in to comment.