Fixed two warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5326 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
9861211bca
commit
8798ada9d9
@ -198,7 +198,7 @@ void PowerupManager::loadWeights(const XMLNode &root,
|
|||||||
printf("Incorrect number of weights found in class '%s':\n",
|
printf("Incorrect number of weights found in class '%s':\n",
|
||||||
class_name.c_str());
|
class_name.c_str());
|
||||||
printf("%d instead of %d - probabilities will be incorrect.\n",
|
printf("%d instead of %d - probabilities will be incorrect.\n",
|
||||||
weight_list.size(), (int)POWERUP_LAST);
|
(int)weight_list.size(), (int)POWERUP_LAST);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -275,4 +275,4 @@ PowerupManager::PowerupType PowerupManager::getRandomPowerup(unsigned int pos)
|
|||||||
|
|
||||||
int random = rand()%m_powerups_for_position[pos_class].size();
|
int random = rand()%m_powerups_for_position[pos_class].size();
|
||||||
return m_powerups_for_position[pos_class][random];
|
return m_powerups_for_position[pos_class][random];
|
||||||
} // getRandomPowerup
|
} // getRandomPowerup
|
||||||
|
Loading…
Reference in New Issue
Block a user