| 281 | static void xParGroupUpdateR(xParSys* s, xParGroup* g, F32 dt); |
| 282 | static void xParGroupUpdate(xParSys* s, xParGroup* g, F32 dt); |
| 283 | void xParSysUpdate(xBase* to, xScene* scn, F32 dt) |
| 284 | { |
| 285 | xParSys* s = (xParSys*)to; |
| 286 | xParSys* parent = s->parent; |
| 287 | if (s->tasset->renderFunc == NULL) |
| 288 | { |
| 289 | par_sprite_begin(); |
| 290 | } |
| 291 | |
| 292 | xParGroup* g = s->group; |
| 293 | while (g != NULL) |
| 294 | { |
| 295 | if (g->m_active) |
| 296 | { |
| 297 | if (parent) |
| 298 | { |
| 299 | xParGroupUpdateR(parent, g, dt); |
| 300 | } |
| 301 | |
| 302 | if (g->m_alive) |
| 303 | { |
| 304 | xParGroupUpdate(s, g, dt); |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | xParGroupAnimate(g, dt); |
| 309 | if (g->m_num_of_particles > 0 && !s->tasset->renderFunc) |
| 310 | { |
| 311 | par_sprite_update(*s, *g); |
| 312 | } |
| 313 | |
| 314 | g = g->m_next; |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | static void xParGroupUpdateR(xParSys* s, xParGroup* g, F32 dt) |
| 319 | { |
no test coverage detected