- 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:
parent
47d4fe65b4
commit
30c09a58ba
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue