diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-11 21:53:35 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-11 21:53:35 +0100 |
commit | 26ab42af5d43c641237a59ca12c97143c5fb571b (patch) | |
tree | c0b8a9d8c73f1ac1b1aa464007ae9423d6bd6181 | |
parent | fba44e37f4ce350f71a9bb500d44c70162cf6abf (diff) | |
download | gold-mine-run-26ab42af5d43c641237a59ca12c97143c5fb571b.tar.gz gold-mine-run-26ab42af5d43c641237a59ca12c97143c5fb571b.zip |
Better order
-rw-r--r-- | src/entities.c | 6 |
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]; |