wfowler1 / LibBSP

C# library for parsing and reading BSP (Binary Space Partition) structures in Quake-based game engines
Other
93 stars 26 forks source link

Leaf faces not loading for Quake 3 BSPs #5

Closed Panzerhandschuh closed 1 year ago

Panzerhandschuh commented 1 year ago

The FirstMarkFaceIndex and NumMarkFaceIndices properties are not loading properly for Quake 3 BSPs. It looks like there is a mistake in the code that checks for the map type (Leaf.cs):

MapType.IsSubtypeOf(MapType.Quake3) && MapType.IsSubtypeOf(MapType.CoD)

I'm not sure what the BSP file spec is for Call of Duty but I'm guessing this code is meant to check if the map type is Quake 3 OR Call of Duty.

wfowler1 commented 1 year ago

Hah, you're right, that's pretty dumb. Actually CoD is completely different so I need to have a quick look over this struct.