aboutsummaryrefslogtreecommitdiff
path: root/src/core/player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/player.cpp')
-rw-r--r--src/core/player.cpp4
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]))