- 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
This commit is contained in:
matrevis 2006-09-02 02:07:19 +00:00
parent 47d4fe65b4
commit 30c09a58ba
1 changed files with 2 additions and 2 deletions

View File

@ -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;