Embarassing typo leading to nonsense meshes. Fixed!
Getty Ritter
8 years ago
92 | 92 |
let b1 = try!(self.next());
|
93 | 93 |
if (b1 & 0x80) != 0 {
|
94 | 94 |
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;
|
96 | 96 |
Ok((val as f32 / 102.0) - 128.0)
|
97 | 97 |
} else {
|
98 | 98 |
Ok((b1 as f32) - 32.0)
|