Fixed multi-item handling (no multiple items were given to anyone at all).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6324 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
6e69463c72
commit
6226a48b6b
@ -268,7 +268,7 @@ void PowerupManager::updateWeightsForRace(unsigned int num_karts)
|
||||
{
|
||||
PowerupType type =
|
||||
(PowerupType) ((i<=POWERUP_LAST) ? i
|
||||
: i-POWERUP_MAX+POWERUP_FIRST);
|
||||
: i+POWERUP_FIRST);
|
||||
unsigned int w =m_weights[pos_class][i-POWERUP_FIRST];
|
||||
for(unsigned int j=0; j<w; j++)
|
||||
m_powerups_for_position[pos_class].push_back(type);
|
||||
|
Loading…
Reference in New Issue
Block a user