summaryrefslogtreecommitdiff
path: root/src/creditsMgr.cpp
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2013-04-18 20:38:29 -0500
committerColin Noga <Tempus@chronometry.ca>2013-04-18 20:38:29 -0500
commit3abe5505fc51f1b397d4659c9e82faf19bc01629 (patch)
tree207c24cd5525c101149762bdf782976bf2f51142 /src/creditsMgr.cpp
parent93faabab3cebc0bca795c0d8c1ad832b0c619134 (diff)
parent3c7beae513ce1d9ff226415e14f834645b1afeb4 (diff)
downloadkamek-3abe5505fc51f1b397d4659c9e82faf19bc01629.tar.gz
kamek-3abe5505fc51f1b397d4659c9e82faf19bc01629.zip
Merge branch 'level-select' of ssh://treeki.rustedlogic.net:30000/Kamek into level-select
Diffstat (limited to '')
-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;
}
}