Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions library/include/CoordTemplate.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "DataDefs.h"
#include "DataFuncs.h"
#include "Export.h"
#include "HashUtil.h"

namespace DFHack
{
Expand Down Expand Up @@ -74,11 +75,7 @@ namespace DFHack

std::size_t operator()() const
{
size_t r = 17;
const size_t m = 65537;
r = m * (r + x);
r = m * (r + y);
return r;
return hash_value(x, y);
}

// dot product
Expand Down Expand Up @@ -181,12 +178,7 @@ namespace DFHack

std::size_t operator()() const
{
size_t r = 17;
const size_t m = 65537;
r = m * (r + x);
r = m * (r + y);
r = m * (r + z);
return r;
return hash_value(x, y, z);
}

// special weirdness used by the dig plugin
Expand Down
Loading