summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp
index 4b54eb4..5822370 100644
--- a/src/map/map.cpp
+++ b/src/map/map.cpp
@@ -1245,10 +1245,10 @@ int map_setipport(MapName name, IP4Address ip, int port)
*------------------------------------------
*/
int map_create_hash(char* str, int len) {
- const int PRIME_CONST = 37;
+ const int PRIME_CONST = 67;
int hash = 0;
for (int i = 0; i < len; i++) {
- hash += (str[i] * (int)pow(PRIME_CONST, i)) % maps_db.size();
+ hash += (str[i] * (int)pow(PRIME_CONST, i)) % 3067;
}
return hash;
}