1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-03 18:54:05 +02:00

Merge pull request #24 from IaVashik/master

Add BSP v21 support (excluding L4D2)
This commit is contained in:
Robin Appelman 2025-04-18 14:32:09 +02:00 committed by GitHub
commit acf3876bd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -144,7 +144,7 @@ impl BinRead for StaticPropLump {
args: Self::Args<'static>, args: Self::Args<'static>,
) -> BinResult<Self> { ) -> BinResult<Self> {
match args.0 { match args.0 {
4..=7 | 10 => { 4..=7 | 9 | 10 => {
RawStaticPropLump::read_options(reader, endian, (args.0,)).map(StaticPropLump::from) RawStaticPropLump::read_options(reader, endian, (args.0,)).map(StaticPropLump::from)
} }
version => Err(binrw::Error::Custom { version => Err(binrw::Error::Custom {

View file

@ -78,6 +78,7 @@ impl Index<LumpType> for Directories {
pub enum BspVersion { pub enum BspVersion {
Version19 = 19, Version19 = 19,
Version20 = 20, Version20 = 20,
Version21 = 21,
} }
#[derive(Debug, Clone, PartialEq, Eq, BinRead)] #[derive(Debug, Clone, PartialEq, Eq, BinRead)]