fix random chance of bonuses

This commit is contained in:
Askou
2021-06-15 11:56:02 +02:00
parent 3219928f37
commit eefc560a81
3 changed files with 25 additions and 5 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ namespace BBM {
{
double rnd = static_cast<double>(std::rand()) / RAND_MAX;
if (rnd <= 1)
if (rnd <= 0.8)
return (static_cast<BonusType>((std::rand() % NOCLIP) + 1));
return (NOTHING);
}