summaryrefslogtreecommitdiff
path: root/src/drops.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-15 16:44:17 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-15 16:44:17 +0100
commit66b82a20506b53ce8dc5dde8e6ea0979a22610f0 (patch)
tree32b6e62c93e9f68a907f2095243e931614de1670 /src/drops.c
parent8c086739e1344fb8789e89074dd962c5719ab030 (diff)
work
Diffstat (limited to 'src/drops.c')
-rw-r--r--src/drops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drops.c b/src/drops.c
index 5a8350f..a03f7ca 100644
--- a/src/drops.c
+++ b/src/drops.c
@@ -75,13 +75,13 @@ void draw_drops(platform_window* window) {
}
void spawn_drop(vec3f pos) {
- static int drop_percentage = 100;
+ static int drop_percentage = 15;
int val = rand() % (100 + 1);
if (val > drop_percentage) {
drop_percentage += 2;
return;
}
- drop_percentage = 100;
+ drop_percentage = 15;
for (int i = 0; i < MAX_DROPS; i++) {
drop b = drops[i];