| 84 | } |
| 85 | |
| 86 | U32 xFFXRemoveEffectByFData(xEnt* ent, void* fdata) |
| 87 | { |
| 88 | xFFX** ffxh = &ent->ffx; |
| 89 | |
| 90 | while (*ffxh != NULL) |
| 91 | { |
| 92 | xFFX* next = *ffxh; |
| 93 | if (fdata == next->fdata) |
| 94 | { |
| 95 | next = next->next; |
| 96 | ent->num_ffx--; |
| 97 | xFFXFree(*ffxh); |
| 98 | *ffxh = next; |
| 99 | |
| 100 | return 1; |
| 101 | } |
| 102 | |
| 103 | ffxh = &(*ffxh)->next; |
| 104 | } |
| 105 | |
| 106 | return 0; |
| 107 | } |
| 108 | |
| 109 | static void xFFXApplyOne(xFFX* ffx, xEnt* ent, xScene* sc, F32 dt) |
| 110 | { |
no test coverage detected