summaryrefslogtreecommitdiff
path: root/src/editor.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-05-11 10:10:23 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-05-11 10:10:23 +0200
commit981d99c229161c8afa508468032fe3ea0b924d3b (patch)
treecb0a2047210da5bb67e4e5b1acb6f9af390c9783 /src/editor.c
parent962ebf95459a8da08f44898d13d185e60de59b45 (diff)
render order, zombie render fix
Diffstat (limited to 'src/editor.c')
-rw-r--r--src/editor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/editor.c b/src/editor.c
index c506cbc..de9a33f 100644
--- a/src/editor.c
+++ b/src/editor.c
@@ -143,10 +143,10 @@ void draw_placing_rectangle(platform_window* window) {
tile t = loaded_map.heightmap[mouse_tile_y][mouse_tile_x];
box box = get_render_box_of_square(window, (vec3f){mouse_tile_x, mouse_tile_y, 0}, (vec3f){1,1,t.height});
- render_quad_with_outline(box.tl_d, box.tr_d, box.bl_d, box.br_d, rgba(255,0,0, 70));
- render_quad_with_outline(box.tl_u, box.tr_u, box.bl_u, box.br_u, rgba(255,0,0, 70));
- render_quad_with_outline(box.tl_u, box.tl_d, box.bl_u, box.bl_d, rgba(255,0,0, 70));
- render_quad_with_outline(box.bl_u, box.br_u, box.bl_d, box.br_d, rgba(255,0,0, 70));
+ render_fill_quad_with_outline(box.tl_d, box.tr_d, box.bl_d, box.br_d, rgba(255,0,0, 70));
+ render_fill_quad_with_outline(box.tl_u, box.tr_u, box.bl_u, box.br_u, rgba(255,0,0, 70));
+ render_fill_quad_with_outline(box.tl_u, box.tl_d, box.bl_u, box.bl_d, rgba(255,0,0, 70));
+ render_fill_quad_with_outline(box.bl_u, box.br_u, box.bl_d, box.br_d, rgba(255,0,0, 70));
}
static bool push_icon_button(int x, int y, int w, image* img, bool isSelected) {