summaryrefslogtreecommitdiff
path: root/src/game.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/game.h b/src/game.h
index 0ae6f167..31e4f369 100644
--- a/src/game.h
+++ b/src/game.h
@@ -23,7 +23,9 @@
#define GAME_H
#include "configlistener.h"
-#include "SDL.h"
+
+#include <SDL.h>
+#include <SDL_framerate.h>
extern std::string map_path;
extern volatile int fps;
@@ -74,17 +76,14 @@ class Game : public ConfigListener
const std::string &getCurrentMapName() { return mMapName; }
private:
- /** Used to determine whether to draw the next frame. */
- int mDrawTime;
-
- /** The minimum frame time in ms (used for frame limiting). */
- int mMinFrameTime;
-
int mLastTarget;
SDL_TimerID mLogicCounterId;
SDL_TimerID mSecondsCounterId;
+ bool mLimitFps;
+ FPSmanager mFpsManager;
+
WindowMenu *mWindowMenu;
Map *mCurrentMap;