From a5d5ad64ff97201e2ccf83c1d79008190906ebcd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 9 Apr 2023 22:46:17 +0200 Subject: move scenery draw scratch buffers to central place --- src/chunk-collision.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/chunk-collision.cpp') diff --git a/src/chunk-collision.cpp b/src/chunk-collision.cpp index dfb0fdd6..2c612576 100644 --- a/src/chunk-collision.cpp +++ b/src/chunk-collision.cpp @@ -155,7 +155,7 @@ void chunk::_replace_bbox(const bbox& x0, const bbox& x1, bool b0, bool b1) bool chunk::can_place_entity(const entity_proto& proto, local_coords pos) { - (void)ensure_scenery_mesh({}); + (void)ensure_scenery_mesh(); const auto center = Vector2(pos)*TILE_SIZE2 + Vector2(proto.offset) + Vector2(proto.bbox_offset), min = center - Vector2(proto.bbox_size/2), max = min + Vector2(proto.bbox_size); -- cgit v1.2.3