dsys2
changeset 12:d7d173fcd44e
fixed the stop bug
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 05 Sep 2011 03:05:24 +0300 |
parents | 65da828bc218 |
children | 6bab2c0b0e4b |
files | src/dsys.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line diff
1.1 --- a/src/dsys.c Sun Sep 04 18:21:26 2011 +0300 1.2 +++ b/src/dsys.c Mon Sep 05 03:05:24 2011 +0300 1.3 @@ -202,6 +202,10 @@ 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 @@ -211,10 +215,6 @@ 1.15 demo->tm = demo->duration; 1.16 } 1.17 1.18 - if(!demo->running) { 1.19 - return; /* nothing changes */ 1.20 - } 1.21 - 1.22 while(demo->active && demo->active->t1 <= demo->tm) { 1.23 proc_event(demo->active, demo->tm); 1.24 demo->active = demo->active->next;