Skip to content

Commit

Permalink
change qangle decode type
Browse files Browse the repository at this point in the history
  • Loading branch information
LaihoE committed Jul 6, 2024
1 parent 07ebd7c commit 4722aaf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/parser/src/second_pass/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,11 @@ impl<'a> Bitreader<'a> {
Ok(v)
}
pub fn decode_qangle_all_3(&mut self) -> Result<[f32; 3], DemoParserError> {
// Used by aimpunch props (not exposed atm) maybe wrong format? correct number of bits anyhow.
let mut v = [0.0; 3];
v[0] = self.read_angle(32)?;
v[1] = self.read_angle(32)?;
v[2] = self.read_angle(32)?;
v[0] = self.decode_noscale()?;
v[1] = self.decode_noscale()?;
v[2] = self.decode_noscale()?;
Ok(v)
}
pub fn decode_qangle_variant(&mut self) -> Result<[f32; 3], DemoParserError> {
Expand Down

0 comments on commit 4722aaf

Please sign in to comment.