aboutsummaryrefslogtreecommitdiff
path: root/src/effect.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-10 23:06:59 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-10 23:06:59 +0100
commit1ae6a63f79edd72aa39c7f7e2bca5182a68592b4 (patch)
tree5c928964bd367019bdbd76db27841211680f7f0d /src/effect.c
parentacb17f540cd8bc3a1e50ae4ab22b97620b55673b (diff)
downloadgold-mine-run-1ae6a63f79edd72aa39c7f7e2bca5182a68592b4.tar.gz
gold-mine-run-1ae6a63f79edd72aa39c7f7e2bca5182a68592b4.zip
Draw entities in order
This makes a difference on the less powerful machines and helps avoiding flickering.
Diffstat (limited to 'src/effect.c')
-rw-r--r--src/effect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effect.c b/src/effect.c
index e308054..a2e58c2 100644
--- a/src/effect.c
+++ b/src/effect.c
@@ -37,6 +37,6 @@ void effect_out_update(Entity *e)
e->delay = 0;
e->frame++;
if (e->frame == MAX_FRAME)
- e->used = 0;
+ e->used = USED_FREE;
}
}