diff --git a/BBGE/Vector.cpp b/BBGE/Vector.cpp index aacf987..6dfc060 100644 --- a/BBGE/Vector.cpp +++ b/BBGE/Vector.cpp @@ -396,7 +396,7 @@ Vector VectorPath::getValue(float usePercent) /*************************************************************************/ -float InterpolatedVector::interpolateTo(Vector vec, float timePeriod, int loopType, bool pingPong, bool ease, InterpolateToFlag flag) +float InterpolatedVector::interpolateTo(Vector vec, float timePeriod, int loopType, bool pingPong, bool ease) { if (timePeriod == 0) { @@ -550,14 +550,14 @@ void InterpolatedVector::doInterpolate(float dt) if (data->pingPong) { - interpolateTo (data->from, data->timePeriod, data->loopType, data->pingPong, data->ease, IS_LOOPING); + interpolateTo (data->from, data->timePeriod, data->loopType, data->pingPong, data->ease); } else { this->x = data->from.x; this->y = data->from.y; this->z = data->from.z; - interpolateTo (data->target, data->timePeriod, data->loopType, data->pingPong, data->ease, IS_LOOPING); + interpolateTo (data->target, data->timePeriod, data->loopType, data->pingPong, data->ease); } } diff --git a/BBGE/Vector.h b/BBGE/Vector.h index 19e6b15..cb87cff 100644 --- a/BBGE/Vector.h +++ b/BBGE/Vector.h @@ -515,8 +515,7 @@ public: return *this; } - enum InterpolateToFlag { NONE=0, IS_LOOPING }; - float interpolateTo (Vector vec, float timePeriod, int loopType = 0, bool pingPong = false, bool ease = false, InterpolateToFlag flag = NONE); + float interpolateTo (Vector vec, float timePeriod, int loopType = 0, bool pingPong = false, bool ease = false); void inline update(float dt) { if (!data)