Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,18 @@ UpdateSleepTime DumbProjectileBehavior::update()
if (m_flightPath.size() >= 2)
{
prevPos = m_flightPath[0];
#if defined(GENERALS_ONLINE_HIGH_FPS_SERVER)
// Info: Look one legacy frame ahead so launch orientation matches the retail 30Hz path.
const Int highFpsPathPointCount = (Int)m_flightPath.size();
const Int legacyPathPointCount = (highFpsPathPointCount + GENERALS_ONLINE_HIGH_FPS_FRAME_MULTIPLIER - 1)
/ GENERALS_ONLINE_HIGH_FPS_FRAME_MULTIPLIER;
const Int legacyPathIntervalCount = max(legacyPathPointCount - 1, 1);
const Int orientationStep = (highFpsPathPointCount - 1 + legacyPathIntervalCount / 2)
/ legacyPathIntervalCount;
curPos = m_flightPath[orientationStep];
#else
curPos = m_flightPath[1];
#endif
}
else
{
Expand Down
Loading