@@ -202,7 +202,7 @@ void LimbPath::Destroy(bool notInherited) {
202
202
Vector LimbPath::GetProgressPos () {
203
203
Vector returnVec (m_Start);
204
204
if (IsStaticPoint ()) {
205
- return m_JointPos + (RotatePoint (returnVec) * GetTotalScaleMultiplier ());
205
+ return m_JointPos + (RotatePoint (returnVec * GetTotalScaleMultiplier () ));
206
206
}
207
207
208
208
// Add all the segments before the current one
@@ -216,13 +216,13 @@ Vector LimbPath::GetProgressPos() {
216
216
returnVec += *m_CurrentSegment * m_SegProgress;
217
217
}
218
218
219
- return m_JointPos + (RotatePoint (returnVec) * GetTotalScaleMultiplier ());
219
+ return m_JointPos + (RotatePoint (returnVec * GetTotalScaleMultiplier () ));
220
220
}
221
221
222
222
Vector LimbPath::GetCurrentSegTarget () {
223
223
Vector returnVec (m_Start);
224
224
if (IsStaticPoint ()) {
225
- return m_JointPos + (RotatePoint (returnVec) * GetTotalScaleMultiplier ());
225
+ return m_JointPos + (RotatePoint (returnVec * GetTotalScaleMultiplier () ));
226
226
}
227
227
228
228
std::deque<Vector>::const_iterator itr;
@@ -235,7 +235,7 @@ Vector LimbPath::GetCurrentSegTarget() {
235
235
returnVec += *m_CurrentSegment;
236
236
}
237
237
238
- return m_JointPos + (RotatePoint (returnVec) * GetTotalScaleMultiplier ());
238
+ return m_JointPos + (RotatePoint (returnVec * GetTotalScaleMultiplier () ));
239
239
}
240
240
241
241
Vector LimbPath::GetCurrentVel (const Vector& limbPos) {
@@ -379,7 +379,7 @@ bool LimbPath::RestartFree(Vector& limbPos, MOID MOIDToIgnore, int ignoreTeam) {
379
379
380
380
if (IsStaticPoint ()) {
381
381
Vector notUsed;
382
- Vector targetPos = m_JointPos + (RotatePoint (m_Start) * GetTotalScaleMultiplier ());
382
+ Vector targetPos = m_JointPos + (RotatePoint (m_Start * GetTotalScaleMultiplier () ));
383
383
Vector beginPos = targetPos;
384
384
// TODO: don't hardcode the beginpos
385
385
beginPos.m_Y -= 24 ;
@@ -508,8 +508,8 @@ void LimbPath::Draw(BITMAP* pTargetBitmap,
508
508
for (std::deque<Vector>::const_iterator itr = m_Segments.begin (); itr != m_Segments.end (); ++itr) {
509
509
nextPoint += *itr;
510
510
511
- Vector prevWorldPosition = m_JointPos + (RotatePoint (prevPoint) * GetTotalScaleMultiplier ());
512
- Vector nextWorldPosition = m_JointPos + (RotatePoint (nextPoint) * GetTotalScaleMultiplier ());
511
+ Vector prevWorldPosition = m_JointPos + (RotatePoint (prevPoint * GetTotalScaleMultiplier () ));
512
+ Vector nextWorldPosition = m_JointPos + (RotatePoint (nextPoint * GetTotalScaleMultiplier () ));
513
513
line (pTargetBitmap, prevWorldPosition.m_X , prevWorldPosition.m_Y , nextWorldPosition.m_X , nextWorldPosition.m_Y , color);
514
514
515
515
Vector min (std::min (prevWorldPosition.m_X , nextWorldPosition.m_X ), std::min (prevWorldPosition.m_Y , nextWorldPosition.m_Y ));
0 commit comments