summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-08 14:08:50 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-08 14:08:50 +0200
commit54965220ebe8f0c1cecb6d1cfec856c979aaa92d (patch)
tree867d5d78313decbfaa2f913b0a2b3e4d54d12292 /editor
parent0cd263af59f256da2d2f3a77be264d5e64c1ec5d (diff)
make global_coords ctor less implicit
Diffstat (limited to 'editor')
-rw-r--r--editor/draw.cpp2
-rw-r--r--editor/save.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/draw.cpp b/editor/draw.cpp
index c01c149d..436283e7 100644
--- a/editor/draw.cpp
+++ b/editor/draw.cpp
@@ -72,7 +72,7 @@ void app::draw_collision_boxes()
auto& world = M->world();
auto& shader = M->shader();
- using rtree_type = std::decay_t<decltype(*world[chunk_coords{}].rtree())>;
+ using rtree_type = std::decay_t<decltype(*world[chunk_coords_{}].rtree())>;
using rect_type = typename rtree_type::Rect;
for (int8_t z = z_min; z <= z_max; z++)
diff --git a/editor/save.cpp b/editor/save.cpp
index c00506a7..6b712589 100644
--- a/editor/save.cpp
+++ b/editor/save.cpp
@@ -57,7 +57,7 @@ void app::do_new_file()
{
reset_world();
auto& w = M->world();
- maybe_initialize_chunk_(chunk_coords{}, w[chunk_coords{}]);
+ maybe_initialize_chunk_(chunk_coords_{}, w[chunk_coords_{}]);
}
} // namespace floormat