diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-10 03:48:18 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-10 03:48:18 +0200 |
| commit | 21356ba6adc4df6d56569d4e659fa5eb1ff180e5 (patch) | |
| tree | 7c5f664cc9e4886872dd7f792c3e05f8bf4f7971 /src/world.cpp | |
| parent | c8c99448c061508a4f40a315c4a71934971e6b54 (diff) | |
move chunk_coords_ conversion to chunk3() member function
Diffstat (limited to 'src/world.cpp')
| -rw-r--r-- | src/world.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/world.cpp b/src/world.cpp index 221b98f8..9b19aed4 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -92,7 +92,7 @@ chunk& world::operator[](chunk_coords_ coord) noexcept auto world::operator[](global_coords pt) noexcept -> pair { - auto& c = operator[](chunk_coords_{pt}); + auto& c = operator[](pt.chunk3()); return { c, c[pt.local()] }; } |
