summaryrefslogtreecommitdiff
path: root/src/objects.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects.c')
-rw-r--r--src/objects.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/objects.c b/src/objects.c
index c1335fb..46714a4 100644
--- a/src/objects.c
+++ b/src/objects.c
@@ -45,6 +45,8 @@ image* get_image_from_objecttype(object_type tile) {
return img_obj_wall1;
case OBJECT_PLANTBOX1:
return img_obj_plants;
+ case OBJECT_METAL_WALL_FRONT:
+ return img_metal_wall_front;
default:
return 0;
}
@@ -61,17 +63,17 @@ void draw_objects_at_row(platform_window* window, int row) {
if (!o.active) continue;
box box = get_box_of_object(window, o);
- /*
image* img = get_image_from_objecttype(o.type);
if (img) {
renderer->render_image(img, box.tl_u.x, box.tl_u.y,
box.br_d.x - box.tl_d.x, box.br_d.y - box.tr_u.y);
}
- */
+ /*
render_quad_with_outline(box.tl_d, box.tr_d, box.bl_d, box.br_d, rgb(200,200,0));
render_quad_with_outline(box.tl_u, box.tr_u, box.bl_u, box.br_u, rgb(200,200,0));
render_quad_with_outline(box.tl_u, box.tl_d, box.bl_u, box.bl_d, rgb(200,200,0));
render_quad_with_outline(box.bl_u, box.br_u, box.bl_d, box.br_d, rgb(200,200,0));
+ */
}
}