mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-04 10:44:42 +00:00
remove changes on getRandomBonusType()
This commit is contained in:
@@ -64,7 +64,6 @@ namespace BBM {
|
||||
|
||||
Bonus::BonusType Bonus::getRandomBonusType()
|
||||
{
|
||||
return NOCLIP;
|
||||
static std::default_random_engine generator(time(nullptr));
|
||||
std::map<BonusType, float> chanceValue = {
|
||||
{NOTHING, 100.0f},
|
||||
@@ -79,10 +78,8 @@ namespace BBM {
|
||||
|
||||
std::cout << value << std::endl;
|
||||
for (auto &chance : chanceValue)
|
||||
if (chance.second > value) {
|
||||
std::cout << value << "<" << chance.second << std::endl;
|
||||
if (chance.second > value)
|
||||
bonus = chance.first;
|
||||
}
|
||||
return (bonus);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user