We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f88e5c4 commit f2bc71cCopy full SHA for f2bc71c
code/fireball/fireballs.cpp
@@ -1151,12 +1151,12 @@ static float cutscene_wormhole(float t) {
1151
float fireball_wormhole_intensity(fireball *fb)
1152
{
1153
float t = fb->time_elapsed;
1154
-
1155
- float rad = cutscene_wormhole(t / fb->warp_open_duration);
+ float rad;
1156
1157
fireball_info* fi = &Fireball_info[fb->fireball_info_index];
1158
1159
if (fi->warp_model_style == warp_style::CINEMATIC) {
+ rad = cutscene_wormhole(t / fb->warp_open_duration);
1160
rad *= cutscene_wormhole((fb->total_time - t) / fb->warp_close_duration);
1161
rad /= cutscene_wormhole(fb->total_time / (2.0f * fb->warp_open_duration));
1162
rad /= cutscene_wormhole(fb->total_time / (2.0f * fb->warp_close_duration));
0 commit comments