mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-27 01:12:54 +08:00
Fixed hash generation to 100% fit RAGE one
This commit is contained in:
parent
44c71139f1
commit
3e05173d11
@ -1516,9 +1516,9 @@ namespace CodeWalker.GameFiles
|
|||||||
|
|
||||||
public void UpdateEntityHash()
|
public void UpdateEntityHash()
|
||||||
{
|
{
|
||||||
uint xhash = (uint)Math.Floor(Position.X * 100);
|
uint xhash = (uint)(Position.X * 100);
|
||||||
uint yhash = (uint)Math.Floor(Position.Y * 100);
|
uint yhash = (uint)(Position.Y * 100);
|
||||||
uint zhash = (uint)Math.Floor(Position.Z * 100);
|
uint zhash = (uint)(Position.Z * 100);
|
||||||
EntityHash = _CEntityDef.archetypeName.Hash ^ xhash ^ yhash ^ zhash & 0xffffffff;
|
EntityHash = _CEntityDef.archetypeName.Hash ^ xhash ^ yhash ^ zhash & 0xffffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user