dsys2
diff src/dsys.c @ 8:4ad7a01c4ff5
ha
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Fri, 02 Sep 2011 10:48:24 +0300 |
parents | 3258d163cfbc |
children | 61cc1a525023 |
line diff
1.1 --- a/src/dsys.c Fri Sep 02 08:14:40 2011 +0300 1.2 +++ b/src/dsys.c Fri Sep 02 10:48:24 2011 +0300 1.3 @@ -297,6 +297,8 @@ 1.4 /* seek without continuity */ 1.5 void dsys_seek(struct dsys_demo *demo, demotime_t tm) 1.6 { 1.7 + struct dsys_event *ev; 1.8 + 1.9 if(tm < 0) { 1.10 tm = 0; 1.11 } 1.12 @@ -306,6 +308,15 @@ 1.13 1.14 demo->start_tm = demo->src_tm - tm; 1.15 demo->stoppage_tm = 0; 1.16 + 1.17 + demo->nextev = demo->active = demo->evlist; 1.18 + 1.19 + /* recalculate events */ 1.20 + ev = demo->evlist; 1.21 + while(ev) { 1.22 + proc_event(ev, tm); 1.23 + ev = ev->next; 1.24 + } 1.25 } 1.26 1.27 void dsys_seek_norm(struct dsys_demo *demo, float t)