- if(sequencename == "endsequence" || sequencename == "fireworks") {
- if(end_sequence)
- return;
-
- end_sequence = new EndSequence();
- currentsector->add_object(end_sequence);
- end_sequence->start();
-
- sound_manager->play_music("music/leveldone.ogg", false);
- currentsector->player->invincible_timer.start(7.3f);
-
- // Stop all clocks.
- for(std::vector<GameObject*>::iterator i = currentsector->gameobjects.begin();
- i != currentsector->gameobjects.end(); ++i)
- {
- GameObject* obj = *i;
-
- LevelTime* lt = dynamic_cast<LevelTime*> (obj);
- if(lt)
- lt->stop();
- }
-
- if(sequencename == "fireworks") {
- currentsector->add_object(new Fireworks());
- }
- } else if(sequencename == "stoptux") {
- if(!end_sequence) {