From 30c09a58ba4fef5ccb254e316a01fc6901f6adaf Mon Sep 17 00:00:00 2001 From: matrevis Date: Sat, 2 Sep 2006 02:07:19 +0000 Subject: [PATCH] - Added an optimization to save cache when reached the end of the simulation This optimization causes some trouble when using jumpto, but nothing terrible. git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@991 3ecf2c5c-341e-0410-92b4-d18e462d057c --- src/backend/concrete_simulation.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/concrete_simulation.cc b/src/backend/concrete_simulation.cc index 665b989..8ae3847 100644 --- a/src/backend/concrete_simulation.cc +++ b/src/backend/concrete_simulation.cc @@ -64,7 +64,7 @@ ConcreteSimulation::jump_to(History::position p) throw(UserInterruptException, N // pauses the simulation (see below) break; case state_stopped: - _history.reset(true); + _history.step_front(0); break; default: break; @@ -126,7 +126,7 @@ ConcreteSimulation::run() throw(UserInterruptException, NullPolicyException, Mal switch (_state) { case state_stopped: - _history.reset(true); + _history.step_front(0); break; default: break;