maraiah: make SideFlags u8 to fix incorrect flags

master
an 2019-07-01 01:24:40 -04:00
parent 501784e2fe
commit ab48d26711
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ pub fn read(b: &[u8]) -> ResultS<(Side, usize)>
read_data! {
endian: BIG, buf: b, size: 64, start: 0, data {
let stype = u16[0] enum SideType;
let flags = u16[2] flag SideFlags;
let flags = u8[3] flag SideFlags;
let tex_pri = stex::read[4; 6];
let tex_sec = stex::read[10; 6];
let tex_tra = stex::read[16; 6];
@ -58,7 +58,7 @@ pub struct Side {
bitflags! {
/// Flags for `Side`.
#[cfg_attr(feature = "serde_obj", derive(serde::Serialize))]
pub struct SideFlags: u16 {
pub struct SideFlags: u8 {
const STATUS = 1;
const PANEL = 1 << 1;
const REPAIR = 1 << 2;