summaryrefslogtreecommitdiff
path: root/abellian_sandpile.c
diff options
context:
space:
mode:
authorTanner Robison <[email protected]>2026-08-27 12:45:06 -0700
committerTanner Robison <[email protected]>2026-08-27 12:53:21 -0700
commita2b839699ffd178267707b8435f5cc78aaf38294 (patch)
treea57003cfba2eef20396187e635a460a7853c341a /abellian_sandpile.c
parentde7432d8eceb2f3eee5d7d88129b7275ab678cc8 (diff)
update READMEmain
Diffstat (limited to 'abellian_sandpile.c')
-rw-r--r--abellian_sandpile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/abellian_sandpile.c b/abellian_sandpile.c
index 87ea099..ef202ed 100644
--- a/abellian_sandpile.c
+++ b/abellian_sandpile.c
@@ -62,9 +62,10 @@ int main(void)
while (running) {
if (!sandpile.paused) {
add_grain(&sandpile);
- update_sandpile(&sandpile);
- draw_sandpile(&sandpile);
}
+
+ update_sandpile(&sandpile);
+ draw_sandpile(&sandpile);
running = handle_input(&sandpile);
}