# HG changeset patch # User John Tsiombikas # Date 1314979932 -10800 # Node ID 61cc1a52502353447cc7f0d6ed6b38942c650b26 # Parent 4ad7a01c4ff53a665c281d7e932509bdb0c12230 ha! diff -r 4ad7a01c4ff5 -r 61cc1a525023 src/dsys.c --- a/src/dsys.c Fri Sep 02 10:48:24 2011 +0300 +++ b/src/dsys.c Fri Sep 02 19:12:12 2011 +0300 @@ -201,10 +201,6 @@ dsys_start(demo); } - if(!demo->running) { - return; /* nothing changes */ - } - demo->tm = tm - demo->start_tm - demo->stoppage_tm; if(demo->tm < 0) { @@ -214,7 +210,11 @@ demo->tm = demo->duration; } - while(demo->active->t1 < demo->tm) { + if(!demo->running) { + return; /* nothing changes */ + } + + while(demo->active->t1 <= demo->tm) { proc_event(demo->active, demo->tm); demo->active = demo->active->next; }