minor cleanup

This commit is contained in:
Andrew Meadows 2014-07-23 16:51:26 -07:00
parent 2cee5992a0
commit c0e02107c5

View file

@ -28,11 +28,7 @@ public:
void applyAccumulatedDelta(); void applyAccumulatedDelta();
glm::vec3 getAccumulatedDelta() const { glm::vec3 getAccumulatedDelta() const {
glm::vec3 foo(0.0f); return (_numDeltas > 0) ? _accumulatedDelta / (float)_numDeltas : glm::vec3(0.0f);
if (_numDeltas > 0) {
foo = _accumulatedDelta / (float)_numDeltas;
}
return foo;
} }
glm::vec3 _position; glm::vec3 _position;