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:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -68,7 +68,7 @@ void Homing::update(float dt)
|
||||
{
|
||||
Flyable::update(dt);
|
||||
|
||||
Kart *kart=0;
|
||||
const Kart *kart = 0;
|
||||
btVector3 direction;
|
||||
float minDistance;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user