mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-02 10:15:32 +00:00
no clip with 5s timer
This commit is contained in:
@@ -58,8 +58,8 @@ namespace BBM {
|
||||
{
|
||||
double rnd = static_cast<double>(std::rand()) / RAND_MAX;
|
||||
|
||||
if (rnd < 0.8)
|
||||
return (static_cast<BonusType>(std::rand() % (NOCLIP - 1) + 1));
|
||||
if (rnd <= 1)
|
||||
return (static_cast<BonusType>((std::rand() % NOCLIP) + 1));
|
||||
return (NOTHING);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user