From 3906c76b132c614fa6817721dd79bb48751a2242 Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Tue, 24 Dec 2024 23:26:02 +0100 Subject: [PATCH] fix step wrong count being recorded on success --- src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor.rs b/src/editor.rs index 55dd015..cf42bdb 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -320,7 +320,7 @@ impl Editor { self.exit_state = ExitState::Save; self.sim_state = SimState::Stepping; self.score = Some(Score { - cycles: self.machine.step_count(), + cycles: self.total_steps + self.machine.step_count(), tiles: self.source_board.count_tiles(), }); }