dsys2
changeset 9:61cc1a525023
ha!
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Fri, 02 Sep 2011 19:12:12 +0300 |
parents | 4ad7a01c4ff5 |
children | 5ba9dd6742a0 |
files | src/dsys.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line diff
1.1 --- a/src/dsys.c Fri Sep 02 10:48:24 2011 +0300 1.2 +++ b/src/dsys.c Fri Sep 02 19:12:12 2011 +0300 1.3 @@ -201,10 +201,6 @@ 1.4 dsys_start(demo); 1.5 } 1.6 1.7 - if(!demo->running) { 1.8 - return; /* nothing changes */ 1.9 - } 1.10 - 1.11 demo->tm = tm - demo->start_tm - demo->stoppage_tm; 1.12 1.13 if(demo->tm < 0) { 1.14 @@ -214,7 +210,11 @@ 1.15 demo->tm = demo->duration; 1.16 } 1.17 1.18 - while(demo->active->t1 < demo->tm) { 1.19 + if(!demo->running) { 1.20 + return; /* nothing changes */ 1.21 + } 1.22 + 1.23 + while(demo->active->t1 <= demo->tm) { 1.24 proc_event(demo->active, demo->tm); 1.25 demo->active = demo->active->next; 1.26 }