Skip to content

Commit

Permalink
Fix for Predict Trajectory #173
Browse files Browse the repository at this point in the history
  • Loading branch information
SupSuper committed Aug 12, 2019
1 parent 6f7d40c commit 1054be2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Savegame/MovingTarget.cpp
Expand Up @@ -152,6 +152,11 @@ void MovingTarget::setSpeed(int speed)
{
_speed = speed;
_speedRadian = calculateRadianSpeed(_speed);
// Recalculate meeting point for any followers
for (std::vector<MovingTarget *>::iterator i = getFollowers()->begin(); i != getFollowers()->end(); ++i)
{
(*i)->resetMeetPoint();
}
calculateSpeed();
}

Expand Down

0 comments on commit 1054be2

Please sign in to comment.