Fix issue #1108
This commit is contained in:
parent
144cdc8f68
commit
448a7eb94f
@ -299,7 +299,7 @@ void PowerupManager::updateWeightsForRace(unsigned int num_karts)
|
|||||||
if(w!=0 && num_karts > 4 &&
|
if(w!=0 && num_karts > 4 &&
|
||||||
(type==POWERUP_PARACHUTE || type==POWERUP_SWITCH) )
|
(type==POWERUP_PARACHUTE || type==POWERUP_SWITCH) )
|
||||||
{
|
{
|
||||||
w = w / (num_karts-4);
|
w = w / (num_karts/4);
|
||||||
if(w==0) w=1;
|
if(w==0) w=1;
|
||||||
}
|
}
|
||||||
for(unsigned int j=0; j<w; j++)
|
for(unsigned int j=0; j<w; j++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user