summaryrefslogtreecommitdiffhomepage
path: root/src/world.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-05 15:53:03 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-05 15:53:03 +0100
commiteb60ef73b0af4ebbf35a67226edf1d8e61d972ae (patch)
treef9f002cf20cc62f831e996d360acdfd0806f746f /src/world.cpp
parent9c7e2fd21b6a39ad9f1eb0f699fc054559d2a6b9 (diff)
a
Diffstat (limited to 'src/world.cpp')
-rw-r--r--src/world.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/world.cpp b/src/world.cpp
index 5f2bb870..7920c205 100644
--- a/src/world.cpp
+++ b/src/world.cpp
@@ -6,7 +6,7 @@
using namespace floormat;
-size_t world::object_id_hasher::operator()(object_id id) const noexcept { return int_hash(id); }
+size_t world::object_id_hasher::operator()(object_id id) const noexcept { return hash_int(id); }
size_t world::chunk_coords_hasher::operator()(const chunk_coords_& coord) const noexcept
{
@@ -14,7 +14,7 @@ size_t world::chunk_coords_hasher::operator()(const chunk_coords_& coord) const
x |= uint64_t((uint16_t)coord.x) << 0;
x |= uint64_t((uint16_t)coord.y) << 16;
x |= uint64_t( (uint8_t)coord.z) << 32;
- return int_hash(x);
+ return hash_int(x);
}
namespace floormat {