* Implemented a way to modify extro parameters as a complement to Wansti's new music
[supertux.git] / src / game_session.cpp
index 7ccf19b..a63f108 100644 (file)
@@ -718,10 +718,10 @@ GameSession::start_sequence(const std::string& sequencename)
       return;
     
     end_sequence = ENDSEQUENCE_RUNNING;
-    endsequence_timer.start(7.0); // 7 seconds until we finish the map
+    endsequence_timer.start(level->extro_length); // 7 seconds until we finish the map
     last_x_pos = -1;
-    sound_manager->play_music("music/leveldone.ogg", false);
-    currentsector->player->invincible_timer.start(7.0);
+    sound_manager->play_music("music/" + level->extro_music, false);
+    currentsector->player->invincible_timer.start(level->extro_length);
 
     if(sequencename == "fireworks") {
       currentsector->add_object(new Fireworks());