- if (!pyro->delay_done) {
- if (!ao_pyro_ready(pyro))
- continue;
-
- /* If there's a delay set, then remember when
- * it expires
- */
- if (pyro->flags & ao_pyro_delay)
- pyro->delay_done = ao_time() + pyro->delay;
- }
-
- /* Check to see if we're just waiting for
- * the delay to expire
- */
- if (pyro->delay_done) {
- if ((int16_t) (ao_time() - pyro->delay_done) < 0)
- continue;