diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-11-08 12:34:18 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-11-08 12:34:18 +0100 |
commit | 9454caf1d99f3d324adab4bc49c6c0609a5faebd (patch) | |
tree | 8e3a972473b2be91729001629926f8558a5b035c /src/render.cpp | |
parent | 747c89f4c0d95082e113ef13c5278b0055637ff9 (diff) |
Fix entity rendering order.
Diffstat (limited to 'src/render.cpp')
-rw-r--r-- | src/render.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render.cpp b/src/render.cpp index d1b9752..943ffcf 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -133,7 +133,7 @@ void state_t::render(game::state_t *game) ents.sort( [](const world::entity_t *x, const world::entity_t *y) -> bool { - return x->render_bounds[1][0] < y->render_bounds[1][0]; + return x->render_bounds[1][1] < y->render_bounds[1][1]; }); for (world::entity_t *ent : ents) { |