mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 14:22:27 +03:00
Arkanoid: rand_range, remote temp number
This commit is contained in:
parent
4417a37a2e
commit
9c3406895c
@ -67,8 +67,7 @@ static const NotificationSequence sequence_short_sound = {
|
||||
|
||||
// generate number in range [min,max)
|
||||
int rand_range(int min, int max) {
|
||||
int number = min + rand() % (max - min);
|
||||
return number;
|
||||
return min + rand() % (max - min);
|
||||
}
|
||||
|
||||
void move_ball(Canvas* canvas, ArkanoidState* st) {
|
||||
|
Loading…
Reference in New Issue
Block a user