| 329 | } |
| 330 | |
| 331 | // Regalloc |
| 332 | void zFXGooUpdateInstance(zFXGooInstance* goo, F32 dt) |
| 333 | { |
| 334 | zFXGooState old_state = goo->state; |
| 335 | if (goo->state != zFXGooStateNormal) |
| 336 | { |
| 337 | goo->time += dt; |
| 338 | if (goo->time >= goo->timer) |
| 339 | { |
| 340 | goo->state = (zFXGooState)(((S32)goo->state + 1) & 0x3); |
| 341 | goo->timer = (goo->time + goo->state_time[goo->state]) - (goo->time - goo->timer); |
| 342 | } |
| 343 | } |
no outgoing calls
no test coverage detected