From c5d4cb9602ed18907d321f2d61f30e1159f58dbf Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 6 Dec 2022 18:38:44 +0100 Subject: sqrt lookup --- evc/src/block.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'evc/src/block.rs') 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), }) -- cgit v1.2.3-70-g09d2