Skip to content
Permalink
Browse files

Fix for Predict Trajectory #173

  • Loading branch information...
SupSuper committed Aug 12, 2019
1 parent 6f7d40c commit 1054be29ec98ee0df46dc0a5e7d1ba7fd33eae1e
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/Savegame/MovingTarget.cpp
@@ -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();
}

0 comments on commit 1054be2

Please sign in to comment.
You can’t perform that action at this time.