fix step wrong count being recorded on success
This commit is contained in:
parent
1abcc0a821
commit
3906c76b13
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ impl Editor {
|
||||||
self.exit_state = ExitState::Save;
|
self.exit_state = ExitState::Save;
|
||||||
self.sim_state = SimState::Stepping;
|
self.sim_state = SimState::Stepping;
|
||||||
self.score = Some(Score {
|
self.score = Some(Score {
|
||||||
cycles: self.machine.step_count(),
|
cycles: self.total_steps + self.machine.step_count(),
|
||||||
tiles: self.source_board.count_tiles(),
|
tiles: self.source_board.count_tiles(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue