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:
commit
acf3876bd5
2 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue