summaryrefslogtreecommitdiffhomepage
path: root/src/world.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-28 22:10:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-28 22:10:27 +0200
commit280b4c235fe11dd629f882f0fb5054384fcee1d7 (patch)
treee89735003b52b04e3c17a3ad5532b36e055cdda7 /src/world.cpp
parent1b84fc144f77c4ebef6fdc0a476410420e0a95b3 (diff)
more work
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/world.cpp b/src/world.cpp
index cefb2485..39b47db1 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -29,7 +29,7 @@ chunk& world::operator[](chunk_coords coord) noexcept
return ret;
}
-std::tuple<chunk&, tile&> world::operator[](global_coords pt) noexcept
+auto world::operator[](global_coords pt) noexcept -> pair
{
auto& c = operator[](pt.chunk());
return { c, c[pt.local()] };