Applied alayan's bugfix - thanks!
This commit is contained in:
parent
8ea8562ee6
commit
9b7f63b4ca
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user