fix pointless check

gui-branch
an 2019-04-12 21:45:47 -04:00
parent 9e31f6e498
commit 0acfa18abd
1 changed files with 1 additions and 11 deletions

View File

@ -38,11 +38,7 @@ fn make_wav(fname: &str, snd: &impl Sound) -> ResultS<()>
fn process_wad(opt: &Options, b: &[u8]) -> ResultS<()>
{
let wad = map::read(b)?;
if opt.wad_wrt_all {
make_yaml(opt, &wad)?;
}
make_yaml(opt, &wad)?;
Ok(())
}
@ -185,11 +181,6 @@ fn main() -> ResultS<()>
StoreTrue,
"snd: Dump all sounds to WAVE files");
arg!("--wad-write-all",
opt.wad_wrt_all,
StoreTrue,
"wad: Dump all known chunks");
arg!("--out-dir",
opt.out_dir,
Store,
@ -248,7 +239,6 @@ struct Options
shp_frm: bool,
shp_seq: bool,
snd_dump: bool,
wad_wrt_all: bool,
}
// EOF