aboutsummaryrefslogtreecommitdiff
path: root/evc/src/block.rs
diff options
context:
space:
mode:
Diffstat (limited to 'evc/src/block.rs')
-rw-r--r--evc/src/block.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/evc/src/block.rs b/evc/src/block.rs
index d0dd4d5..024adb6 100644
--- a/evc/src/block.rs
+++ b/evc/src/block.rs
@@ -25,9 +25,9 @@ impl Block {
a.write(sink)?;
b.write(sink)?;
}
- Block::Reference { translation: _ } => {
+ Block::Reference { translation } => {
sink.put(2u8)?;
- // sink.put(*translation)?;
+ sink.put(*translation)?;
}
}
Ok(())
@@ -54,7 +54,7 @@ impl Block {
[a, b]
})),
2 => Block::Reference {
- translation: Vec2::ZERO, //source.get()?,
+ translation: source.get()?,
},
x => bail!("corrupt block type ({})", x),
})