From ed5abdcc9224e087f2f0562737082b8a4258efab Mon Sep 17 00:00:00 2001 From: Will Date: Wed, 20 Jan 2016 01:02:35 -0700 Subject: [PATCH] Fix Static Props angles being read as origin. --- LibBSP/Source/Structs/BSP/SourceStaticProp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibBSP/Source/Structs/BSP/SourceStaticProp.cs b/LibBSP/Source/Structs/BSP/SourceStaticProp.cs index 84f063b..8ff0e10 100644 --- a/LibBSP/Source/Structs/BSP/SourceStaticProp.cs +++ b/LibBSP/Source/Structs/BSP/SourceStaticProp.cs @@ -84,7 +84,7 @@ namespace LibBSP { } case 4: { origin = new Vector3(BitConverter.ToSingle(data, 0), BitConverter.ToSingle(data, 4), BitConverter.ToSingle(data, 8)); - origin = new Vector3(BitConverter.ToSingle(data, 12), BitConverter.ToSingle(data, 16), BitConverter.ToSingle(data, 20)); + angles = new Vector3(BitConverter.ToSingle(data, 12), BitConverter.ToSingle(data, 16), BitConverter.ToSingle(data, 20)); dictionaryEntry = BitConverter.ToInt16(data, 24); solidity = data[30]; flags = data[31];