- // fallback in case the other endpositions don't trigger
- if (!end_sequence && tux->base.x >= endpos)
- {
- end_sequence = ENDSEQUENCE_WAITING;
- last_x_pos = -1;
- music_manager->play_music(level_end_song, 0);
- endsequence_timer.start(7000);
- tux->invincible_timer.start(7000); //FIXME: Implement a winning timer for the end sequence (with special winning animation etc.)
- }
- else if(end_sequence && !endsequence_timer.check())