Fixed hash generation to 100% fit RAGE one

This commit is contained in:
Eugene Pogrebnyak 2020-12-03 23:47:39 +03:00
parent 44c71139f1
commit 3e05173d11

View File

@ -1516,9 +1516,9 @@ namespace CodeWalker.GameFiles
public void UpdateEntityHash()
{
uint xhash = (uint)Math.Floor(Position.X * 100);
uint yhash = (uint)Math.Floor(Position.Y * 100);
uint zhash = (uint)Math.Floor(Position.Z * 100);
uint xhash = (uint)(Position.X * 100);
uint yhash = (uint)(Position.Y * 100);
uint zhash = (uint)(Position.Z * 100);
EntityHash = _CEntityDef.archetypeName.Hash ^ xhash ^ yhash ^ zhash & 0xffffffff;
}