2
0
Эх сурвалжийг харах

Fixed framecount in boy.animation.
Added back assert in Curve setPoint(), but with check to ensure that if the _pointcount is 1, then the requirement that the last point have a keytime of 1.0 is not required.
Added back WASD controls in CharacterGame.
Adjusted ANIM_SPEED to 1.0.
Gamepad controls still need work.

Kieran Cunney 13 жил өмнө
parent
commit
d14e9bb78e

+ 1 - 1
gameplay/src/Curve.cpp

@@ -119,7 +119,7 @@ void Curve::setPoint(unsigned int index, float time, float* value, Interpolation
 
 void Curve::setPoint(unsigned int index, float time, float* value, InterpolationType type, float* inValue, float* outValue)
 {
-    //assert(index < _pointCount && time >= 0.0f && time <= 1.0f && !(index == 0 && time != 0.0f) && !(index == _pointCount - 1 && time != 1.0f));
+    assert(index < _pointCount && time >= 0.0f && time <= 1.0f && !(index == 0 && time != 0.0f) && !(_pointCount != 1 && index == _pointCount - 1 && time != 1.0f));
 
     _points[index].time = time;
     _points[index].type = type;