gdritter repos utmyen / 7fc179f
Embarassing typo leading to nonsense meshes. Fixed! Getty Ritter 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Collapse all Expand all
9292 let b1 = try!(self.next());
9393 if (b1 & 0x80) != 0 {
9494 let b2 = try!(self.next());
95 let val = ((b2 as u16 & 0x7f) << 8) | b2 as u16;
95 let val = ((b1 as u16 & 0x7f) << 8) | b2 as u16;
9696 Ok((val as f32 / 102.0) - 128.0)
9797 } else {
9898 Ok((b1 as f32) - 32.0)