fix step wrong count being recorded on success

This commit is contained in:
Crispy 2024-12-24 23:26:02 +01:00
parent 1abcc0a821
commit 3906c76b13

View file

@ -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(),
});
}