-#if 1
- sound = getTitleSound(tci->local_nr, tci->initial, tci->is_image);
- music = getTitleMusic(tci->local_nr, tci->initial, tci->is_image);
-
- if (sound != last_sound)
- PlayMenuSoundExt(sound);
- if (music != last_music)
- PlayMenuMusicExt(music);
-
- last_sound = sound;
- last_music = music;
-#endif
-
- if (use_cross_fading)
- FadeCross(REDRAW_ALL);
- else
- FadeIn(REDRAW_ALL);
-
- DelayReached(&title_delay, 0); /* reset delay counter */
- }
- else
- {
- FadeSoundsAndMusic();
-
- FadeOut(REDRAW_ALL);
-
- return_to_main_menu = TRUE;
- }
- }
-
- if (return_to_main_menu)
- {
- RedrawBackground();
-
- SetMouseCursor(CURSOR_DEFAULT);
-
- if (game_status == GAME_MODE_INFO)
- {
- OpenDoor(DOOR_CLOSE_1 | DOOR_CLOSE_2 | DOOR_NO_DELAY | DOOR_FORCE_REDRAW);
-
- info_mode = INFO_MODE_MAIN;
- DrawInfoScreenExt(REDRAW_ALL, use_fading_main_menu);
- }
- else /* default: return to main menu */
- {
- OpenDoor(DOOR_CLOSE_1 | DOOR_OPEN_2 | DOOR_NO_DELAY | DOOR_FORCE_REDRAW);
-
- game_status = GAME_MODE_MAIN;
- DrawMainMenuExt(REDRAW_ALL, use_fading_main_menu);
- }
- }
-}
-
-#else
-
-void HandleTitleScreen(int mx, int my, int dx, int dy, int button)
-{
- static unsigned long title_delay = 0;
- static int title_nr = 0;
- static boolean showing_message = FALSE;
- char *filename = getLevelSetMessageFilename();
- boolean return_to_main_menu = FALSE;
- boolean use_fading_main_menu = TRUE;
- boolean use_cross_fading = !show_title_initial; /* default */
- boolean no_title_info = (graphic_info[IMG_TITLESCREEN_1].bitmap == NULL &&
- getLevelSetMessageFilename(1, FALSE) == NULL);
-
- if (button == MB_MENU_INITIALIZE)
- {
- int last_game_status = game_status; /* save current game status */
-
- title_delay = 0;
- title_nr = 0;
- showing_message = FALSE;
-
- if (show_title_initial &&
- graphic_info[IMG_TITLESCREEN_INITIAL_1].bitmap == NULL &&
- getLevelSetMessageFilename(1, TRUE) == NULL)
- show_title_initial = FALSE;
-
- if (game_status == GAME_MODE_INFO)
- {
- if (no_title_info)
- {
- DrawInfoScreen_NotAvailable("Title screen information:",
- "No title screen for this level set.");
-
- title.auto_delay_final = -1;
-
- return;
- }