1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

update GenerateGuidFromString to resolve to a stable hash code.

fix bots not showing up on live radar
This commit is contained in:
RaidMax
2020-09-21 15:30:42 -05:00
parent fe6dec3361
commit 514af749e7
10 changed files with 101 additions and 26 deletions

View File

@ -1232,6 +1232,7 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
return 886229536;
}
// todo: this is not stable and will need to be migrated again...
long id = HashCode.Combine(server.IP, server.Port);
id = id < 0 ? Math.Abs(id) : id;
long? serverId;