Applied alayan's bugfix - thanks!

This commit is contained in:
hiker 2018-08-01 08:49:22 +10:00
parent 8ea8562ee6
commit 9b7f63b4ca

View File

@ -264,7 +264,7 @@ void PowerupManager::WeightsData::interpolate(WeightsData *prev,
std::vector<int> &l = m_weights_for_section.back();
for (unsigned int i = 0; i < w_prev.size(); i++)
{
float interpolated_weight = w_prev[i] * f + w_next[i] * (1 - f);
float interpolated_weight = w_prev[i] * (1-f) + w_next[i] * f;
l.push_back(int(interpolated_weight + 0.5f));
}
} // for l < prev->m_weights_for_section.size()