From 87cd9fb2bbb05b6538a38b30cd1d78352467a4fc Mon Sep 17 00:00:00 2001 From: Will Date: Thu, 18 Feb 2016 22:02:22 -0700 Subject: [PATCH] Fix reading Call of Duty maps. --- LibBSP/Source/Util/BSPReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibBSP/Source/Util/BSPReader.cs b/LibBSP/Source/Util/BSPReader.cs index 1b23b50..3c834cd 100644 --- a/LibBSP/Source/Util/BSPReader.cs +++ b/LibBSP/Source/Util/BSPReader.cs @@ -161,7 +161,7 @@ namespace LibBSP { lumpLength = BitConverter.ToInt32(input, 4); lumpVersion = BitConverter.ToInt32(input, 8); lumpIdent = BitConverter.ToInt32(input, 12); - } else if (version == MapType.CoD2) { + } else if (version == MapType.CoD || version == MapType.CoD2) { lumpLength = BitConverter.ToInt32(input, 0); lumpOffset = BitConverter.ToInt32(input, 4); } else {