mindustry logic execution, map- and schematic- parsing and rendering
bump ver
bendn 2023-11-10
parent 0b017bb · commit 2c21b8b
-rw-r--r--lemu/Cargo.toml2
-rw-r--r--lemu/src/instructions/draw.rs2
-rw-r--r--lemu/src/main.rs1
3 files changed, 3 insertions, 2 deletions
diff --git a/lemu/Cargo.toml b/lemu/Cargo.toml
index 5985dad..11bc0a9 100644
--- a/lemu/Cargo.toml
+++ b/lemu/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "lemu"
-version = "0.2.13"
+version = "0.2.15"
edition = "2021"
description = "M-LOG runner"
authors = ["bend-n <[email protected]>"]
diff --git a/lemu/src/instructions/draw.rs b/lemu/src/instructions/draw.rs
index 04b168c..82f97da 100644
--- a/lemu/src/instructions/draw.rs
+++ b/lemu/src/instructions/draw.rs
@@ -272,7 +272,7 @@ impl DrawInstruction for Triangle {
map!(point!([email protected]), to32),
map!(point!([email protected]), to32),
);
- i.tri(a, b, c, state.col());
+ i.tri::<f32>(a, b, c, state.col());
}
}
impl Disp for Triangle {
diff --git a/lemu/src/main.rs b/lemu/src/main.rs
index 49841d1..7231eb9 100644
--- a/lemu/src/main.rs
+++ b/lemu/src/main.rs
@@ -21,6 +21,7 @@ fn main() -> ExitCode {
}
};
lex.run();
+ dbg!(lex.instructions_ran);
let Output { displays, .. } = lex.output();
for (d, i) in displays.iter().zip(1..=displays.len()) {
d.save(format!("image{i}.png"));