diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/draw.cpp | 2 | ||||
-rw-r--r-- | main/main-impl.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/main/draw.cpp b/main/draw.cpp index a8bac01c..322f4f66 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -171,7 +171,7 @@ void main_impl::draw_world() noexcept auto& c = *c_; const with_shifted_camera_offset o{_shader, pos, {minx, miny}, {maxx, maxy}}; if (check_chunk_visible(_shader.camera_offset(), sz)) - _anim_mesh.draw(_shader, sz, c, _clickable_scenery); + _anim_mesh.draw(_shader, sz, c, _clickable_scenery, _do_render_vobjs); } _shader.set_tint({1, 1, 1, 1}); diff --git a/main/main-impl.cpp b/main/main-impl.cpp index f6a3dff0..c774e589 100644 --- a/main/main-impl.cpp +++ b/main/main-impl.cpp @@ -46,6 +46,9 @@ Vector2i floormat_main::window_size() const noexcept return _framebuffer_size; } +void floormat_main::set_render_vobjs(bool value) { _do_render_vobjs = value; } +bool floormat_main::is_rendering_vobjs() const { return _do_render_vobjs; } + void main_impl::set_cursor(uint32_t cursor) noexcept { if (cursor != _mouse_cursor || _mouse_cursor == (uint32_t)-1) |