From 8b7370ee10c54a79afce56e0769d58e3c3a1741c Mon Sep 17 00:00:00 2001 From: Kyzentun Keeslala Date: Mon, 8 Jun 2015 10:07:17 -0600 Subject: [PATCH] AMV SetVertsFromSplinesInternal had a fencepost error that made it not put a vert at the end of the spline. --- src/ActorMultiVertex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ActorMultiVertex.cpp b/src/ActorMultiVertex.cpp index d59b20ad33..0eddf375df 100644 --- a/src/ActorMultiVertex.cpp +++ b/src/ActorMultiVertex.cpp @@ -335,8 +335,8 @@ void ActorMultiVertex::SetVertsFromSplinesInternal(size_t num_splines, size_t of size_t first= AMV_DestTweenState().FirstToDraw + offset; size_t num_verts= AMV_DestTweenState().GetSafeNumToDraw(AMV_DestTweenState()._DrawMode, AMV_DestTweenState().NumToDraw) - offset; vector tper(num_splines, 0.0f); - float num_parts= static_cast(num_verts) / - static_cast(num_splines); + float num_parts= (static_cast(num_verts) / + static_cast(num_splines)) - 1.0f; for(size_t i= 0; i < num_splines; ++i) { tper[i]= _splines[i].get_max_t() / num_parts;