# HG changeset patch # User John Tsiombikas # Date 1315181124 -10800 # Node ID d7d173fcd44ef1920279834dbc1e0d715348c7ad # Parent 65da828bc2180c27da90c176bdb5e24f78c0ce9e fixed the stop bug diff -r 65da828bc218 -r d7d173fcd44e src/dsys.c --- a/src/dsys.c Sun Sep 04 18:21:26 2011 +0300 +++ b/src/dsys.c Mon Sep 05 03:05:24 2011 +0300 @@ -202,6 +202,10 @@ dsys_start(demo); } + if(!demo->running) { + return; /* nothing changes */ + } + demo->tm = tm - demo->start_tm - demo->stoppage_tm; if(demo->tm < 0) { @@ -211,10 +215,6 @@ demo->tm = demo->duration; } - if(!demo->running) { - return; /* nothing changes */ - } - while(demo->active && demo->active->t1 <= demo->tm) { proc_event(demo->active, demo->tm); demo->active = demo->active->next;