| 47 | } |
| 48 | |
| 49 | void xLaserBoltEmitter::reset() |
| 50 | { |
| 51 | static_queue<bolt>::iterator it = this->bolts.begin(); |
| 52 | while (it != this->bolts.end()) |
| 53 | { |
| 54 | bolt& b = *it; |
| 55 | |
| 56 | effect_data* itfx = this->fx[6]; |
| 57 | effect_data* endfx = itfx + this->fxsize[6]; |
| 58 | while (itfx != endfx) |
| 59 | { |
| 60 | emit_fx(*itfx, b, b.hit_dist, b.hit_dist, (1.0f / 60.0f)); |
| 61 | itfx++; |
| 62 | } |
| 63 | |
| 64 | ++it; |
| 65 | } |
| 66 | |
| 67 | this->bolts.clear(); |
| 68 | start_collide = 0; |
| 69 | |
| 70 | for (S32 i = FX_WHEN_LAUNCH; i < MAX_FX_WHEN; i++) |
| 71 | { |
| 72 | reset_fx((fx_when_enum)i); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | void xLaserBoltEmitter::refresh_config() |
| 77 | { |
no test coverage detected