diff --git a/Assets/Scripts/ServerShared/CultCache/Serialization/MathResolver.cs b/Assets/Scripts/ServerShared/CultCache/Serialization/MathResolver.cs index 1a09c35a2..5201241dd 100644 --- a/Assets/Scripts/ServerShared/CultCache/Serialization/MathResolver.cs +++ b/Assets/Scripts/ServerShared/CultCache/Serialization/MathResolver.cs @@ -52,7 +52,7 @@ internal static class MathResolverResolverGetFormatterHelper { typeof(float3[]), new ArrayFormatter() }, { typeof(float4[]), new ArrayFormatter() }, { typeof(float2?[]), new ArrayFormatter() }, - { typeof(int2?[]), new ArrayFormatter() }, + { typeof(int2?[]), new ArrayFormatter() }, { typeof(float3?[]), new ArrayFormatter() }, { typeof(float4?[]), new ArrayFormatter() }, diff --git a/Assets/Scripts/ServerShared/ZoneGenerator.cs b/Assets/Scripts/ServerShared/ZoneGenerator.cs index 5c2dfd208..948eb79ff 100644 --- a/Assets/Scripts/ServerShared/ZoneGenerator.cs +++ b/Assets/Scripts/ServerShared/ZoneGenerator.cs @@ -44,7 +44,7 @@ public static class ZoneGenerator { var pack = new ZonePack(); - var random = new Random(unchecked((uint) galaxyZone.Name.GetHashCode()) ^ hash(galaxyZone.Position)); + var random = new Random(unchecked((uint) galaxyZone.Name.GetHashCode()) ^ (uint) BitConverter.SingleToInt32Bits(hash(galaxyZone.Position))); var density = saturate(galaxy.Background.CloudDensity(galaxyZone.Position)/2); pack.Radius = zoneSettings.ZoneRadius.Evaluate(density);