summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/creditsMgr.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/creditsMgr.cpp b/src/creditsMgr.cpp
index d66083d..c13d906 100644
--- a/src/creditsMgr.cpp
+++ b/src/creditsMgr.cpp
@@ -106,6 +106,7 @@ class dCreditsMgr_c : public dActorState_c {
bool fireworks;
int fireworksCountdown;
+ int endFWAfter;
int fauxScrollFrame;
float fauxScrollMinX, fauxScrollMaxX, fauxScrollY;
@@ -245,6 +246,10 @@ int dCreditsMgr_c::onExecute() {
nw4r::snd::SoundHandle handle;
PlaySoundWithFunctionB4(SoundRelatedClass, &handle, SE_OBJ_GOAL_FIREWORKS, 1);
+
+ endFWAfter--;
+ if (endFWAfter <= 0)
+ fireworks = false;
}
}
@@ -361,6 +366,10 @@ int dCreditsMgr_c::onExecute() {
case 19:
fireworks = true;
fireworksCountdown = 25;
+ endFWAfter = 480;
+ break;
+ case 20:
+ fireworks = false;
break;
}
}