| 59 | } |
| 60 | |
| 61 | void Transition::PrependFlashes(int r, int g, int b, int p, int duration, int iterations) { |
| 62 | flash.red = r; |
| 63 | flash.green = g; |
| 64 | flash.blue = b; |
| 65 | flash.current_level = 0.0; |
| 66 | flash.time_left = 0; |
| 67 | |
| 68 | flash_power = p; |
| 69 | flash_duration = std::max(1, duration); |
| 70 | flash_iterations = std::max(1, iterations); |
| 71 | } |
| 72 | |
| 73 | void Transition::Init(Type type, Scene *linked_scene, int duration, bool next_erase) { |
| 74 | // Triggering multiple transitions on a single frame is a bug. |