aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-11 21:53:35 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-11 21:53:35 +0100
commit26ab42af5d43c641237a59ca12c97143c5fb571b (patch)
treec0b8a9d8c73f1ac1b1aa464007ae9423d6bd6181 /src
parentfba44e37f4ce350f71a9bb500d44c70162cf6abf (diff)
downloadgold-mine-run-26ab42af5d43c641237a59ca12c97143c5fb571b.tar.gz
gold-mine-run-26ab42af5d43c641237a59ca12c97143c5fb571b.zip
Better order
Diffstat (limited to 'src')
-rw-r--r--src/entities.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/entities.c b/src/entities.c
index a1aa9db..321af98 100644
--- a/src/entities.c
+++ b/src/entities.c
@@ -83,9 +83,9 @@ void entities_sort()
{
uint8_t j = i;
while (j > 0 && (
- sort[j - 1]->y > sort[j]->y
- || ((sort[j - 1]->y >> 4) == (sort[j]->y >> 4)
- && sort[j - 1]->used > sort[j]->used)
+ ((sort[j - 1]->y >> 4) == (sort[j]->y >> 4)
+ && sort[j - 1]->used > sort[j]->used)
+ || sort[j - 1]->y > sort[j]->y
))
{
t = sort[j];