| 2523 | } |
| 2524 | |
| 2525 | void DoEnding() |
| 2526 | { |
| 2527 | BOOL bMusicOn; |
| 2528 | int musicVolume; |
| 2529 | |
| 2530 | if (gbMaxPlayers > 1) { |
| 2531 | SNetLeaveGame(0x40000004); |
| 2532 | } |
| 2533 | |
| 2534 | music_stop(); |
| 2535 | |
| 2536 | if (gbMaxPlayers > 1) { |
| 2537 | SDL_Delay(1000); |
| 2538 | } |
| 2539 | |
| 2540 | #ifndef SPAWN |
| 2541 | if (plr[myplr]._pClass == PC_WARRIOR) { |
| 2542 | play_movie("gendata\\DiabVic2.smk", FALSE); |
| 2543 | } else if (plr[myplr]._pClass == PC_SORCERER) { |
| 2544 | play_movie("gendata\\DiabVic1.smk", FALSE); |
| 2545 | } else { |
| 2546 | play_movie("gendata\\DiabVic3.smk", FALSE); |
| 2547 | } |
| 2548 | play_movie("gendata\\Diabend.smk", FALSE); |
| 2549 | |
| 2550 | bMusicOn = gbMusicOn; |
| 2551 | gbMusicOn = TRUE; |
| 2552 | |
| 2553 | musicVolume = sound_get_or_set_music_volume(1); |
| 2554 | sound_get_or_set_music_volume(0); |
| 2555 | |
| 2556 | music_start(TMUSIC_L2); |
| 2557 | loop_movie = TRUE; |
| 2558 | play_movie("gendata\\loopdend.smk", TRUE); |
| 2559 | loop_movie = FALSE; |
| 2560 | music_stop(); |
| 2561 | |
| 2562 | sound_get_or_set_music_volume(musicVolume); |
| 2563 | gbMusicOn = bMusicOn; |
| 2564 | #endif |
| 2565 | } |
| 2566 | |
| 2567 | void PrepDoEnding() |
| 2568 | { |
no test coverage detected