aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-02 02:58:08 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-02 02:58:08 +0000
commiteaa6a19cd0537c0bb8d57d743f894f58c62d378a (patch)
tree403f3c0cec90dbcae398c0dfb5fb7fe270897ba0 /main.cpp
parentaed99b27218aaf0068d04c24ba938e405c73c80f (diff)
downloadbullet-lab-remix-eaa6a19cd0537c0bb8d57d743f894f58c62d378a.tar.xz
New interface for background class, other minor level changes.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/main.cpp b/main.cpp
index 43a432c..94b90e6 100644
--- a/main.cpp
+++ b/main.cpp
@@ -172,15 +172,9 @@ void ProcessPlayer()
playerrot+=0.00174533*17;
double realspd;
if (hge->Input_GetKeyState(HGEK_SHIFT))
- if (LOWFPS)
- realspd=playerslospeed*17;
- else
- realspd=playerslospeed;
+ realspd=playerslospeed*(1000.0f/hge->Timer_GetFPS());
else
- if (LOWFPS)
- realspd=playerspeed*17;
- else
- realspd=playerspeed;
+ realspd=playerspeed*(1000.0f/hge->Timer_GetFPS());
if (hge->Input_GetKeyState(HGEK_LEFT)&&!playerLockX)
{
if (playerpos.x>10)