mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-05 02:49:57 +00:00
fix random chance of bonuses
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user