From 26608d3f82e53d98765be71723c41e2822f2b0de Mon Sep 17 00:00:00 2001 From: Regalis Date: Tue, 3 May 2016 00:16:43 +0300 Subject: [PATCH] Fixed long level/map seeds always being converted to int.MaxVal --- Subsurface/Source/Utils/ToolBox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Subsurface/Source/Utils/ToolBox.cs b/Subsurface/Source/Utils/ToolBox.cs index 17e8f8903..295777dc5 100644 --- a/Subsurface/Source/Utils/ToolBox.cs +++ b/Subsurface/Source/Utils/ToolBox.cs @@ -331,7 +331,7 @@ namespace Barotrauma for (int i = 4; i < asciiBytes.Length; i++) { - asciiBytes[i % 4] |= asciiBytes[i]; + asciiBytes[i % 4] ^= asciiBytes[i]; } return BitConverter.ToInt32(asciiBytes, 0);