Mercurial > audlegacy-plugins
diff src/paranormal/containers.c @ 302:b185ed2f8fa2 trunk
[svn] - improve beat detection
| author | nenolod |
|---|---|
| date | Wed, 22 Nov 2006 22:59:26 -0800 |
| parents | 0d826917c56f |
| children | 5e19836a2db2 |
line wrap: on
line diff
--- a/src/paranormal/containers.c Wed Nov 22 22:46:16 2006 -0800 +++ b/src/paranormal/containers.c Wed Nov 22 22:59:26 2006 -0800 @@ -175,12 +175,11 @@ { struct container_cycle_data *cdata = (struct container_cycle_data*)data; int now; - int new_beat = pn_is_new_beat(); /* * Change branch if all of the requirements are met for the branch to change. */ - if ((opts[1].val.bval == TRUE && new_beat != 0) || opts[1].val.bval == FALSE) + if ((opts[1].val.bval == TRUE && pn_new_beat != FAlSE) || opts[1].val.bval == FALSE) { now = SDL_GetTicks(); @@ -232,7 +231,7 @@ { GSList *child; - if (pn_is_new_beat() == TRUE) + if (pn_new_beat == TRUE) { for (child = *data; child; child = child->next) exec_actuator ((struct pn_actuator *) child->data);
