diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-14 17:08:23 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-14 17:08:23 +0100 |
| commit | ee4906ef5fc89f3f10cd6aaf95845a0ae9b2f47e (patch) | |
| tree | 83abd90aca3de2f6bceac8ef742e6c5eb0688bb2 /src/objects.c | |
| parent | 99f328fa19bb9cb266d9525629813cc0268a889e (diff) | |
render order fix for bullets, ammo implementation
Diffstat (limited to 'src/objects.c')
| -rw-r--r-- | src/objects.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/objects.c b/src/objects.c index ae65af2..e4e01d9 100644 --- a/src/objects.c +++ b/src/objects.c @@ -33,13 +33,10 @@ void draw_objects_at_row(platform_window* window, int row) { for (int i = MAP_SIZE_X-1; i >= 0; i--) { object o = get_object_at_tile(i, row); - OBJECT_RENDER_DEPTH(o.h); draw_players_at_tile(window, i, row); + OBJECT_RENDER_DEPTH((int)o.position.y); draw_zombies_at_tile(window, i, row); - - draw_bullets(window); - OBJECT_RENDER_DEPTH(o.h); if (!o.active) continue; box box = get_box_of_object(window, o); |
