Fixed const kart *.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2215 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2008-09-02 00:46:05 +00:00
parent 19d91fb0c1
commit 0e014af8c4
4 changed files with 4 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ void Bowling::init(const lisp::Lisp* lisp, ssgEntity *bowling)
void Bowling::update(float dt)
{
Flyable::update(dt);
Kart *kart=0;
const Kart *kart=0;
btVector3 direction;
float minDistance;
getClosestKart(&kart, &minDistance, &direction);

View File

@@ -123,7 +123,7 @@ Flyable::~Flyable()
} // ~Flyable
//-----------------------------------------------------------------------------
void Flyable::getClosestKart(Kart **minKart, float *minDistSquared,
void Flyable::getClosestKart(const Kart **minKart, float *minDistSquared,
btVector3 *minDelta, const Kart* inFrontOf) const
{
btTransform tProjectile=getTrans();

View File

@@ -59,7 +59,7 @@ protected:
kart in front of some karts (will ignore those behind).
Useful e.g. for throwing projectiles in front only.
*/
void getClosestKart(Kart **minKart, float *minDistSquared,
void getClosestKart(const Kart **minKart, float *minDistSquared,
btVector3 *minDelta, const Kart* inFrontOf=NULL) const;
void createPhysics(float y_offset,
const btVector3 velocity,

View File

@@ -68,7 +68,7 @@ void Homing::update(float dt)
{
Flyable::update(dt);
Kart *kart=0;
const Kart *kart = 0;
btVector3 direction;
float minDistance;