From 97caa971ba3d7f11ff608f7a333f098c0d2a0a8c Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Tue, 6 Oct 2015 11:27:15 +0800 Subject: Forgot to add '-a'... --- src/core/player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/player.cpp') 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])) -- cgit v1.2.3