diff options
author | Chris Xiong <chirs241097@gmail.com> | 2015-10-06 11:27:15 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2015-10-06 11:27:15 +0800 |
commit | 97caa971ba3d7f11ff608f7a333f098c0d2a0a8c (patch) | |
tree | ecef927aba5827d815337ef043e100ef60dd3e19 /src/core/player.cpp | |
parent | df888862b81d3c5baa011e79e41b33f3963d812a (diff) | |
download | bullet-lab-remix-97caa971ba3d7f11ff608f7a333f098c0d2a0a8c.tar.xz |
Forgot to add '-a'...
Diffstat (limited to 'src/core/player.cpp')
-rw-r--r-- | src/core/player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/player.cpp b/src/core/player.cpp index 3407a0c..794bb5a 100644 --- a/src/core/player.cpp +++ b/src/core/player.cpp @@ -2,7 +2,7 @@ #include "player.hpp" #include "../master/resources.hpp" SMELT* playerBase::sm=NULL; -playerBase::playerBase(float _x,float _y) +playerBase::playerBase(double _x,double _y) { sm=smGetInterface(SMELT_APILEVEL); playerent=new smEntity2D(ssanm.getTextureInfo("player")->tex,ssanm.getTextureInfo("player")->rect); @@ -20,7 +20,7 @@ playerBase::~playerBase() void playerBase::update() { //player control... - static float realspeed=0; + static double realspeed=0; if(sm->smGetKeyState(plyrctl[4])) realspeed=0.85;else realspeed=3.5; if(sm->smGetKeyState(plyrctl[0])) |