Always use hellfire menu when hellfire is enabled
This commit is contained in:
parent
7db206ea33
commit
08838c9cae
2 changed files with 9 additions and 2 deletions
|
|
@ -115,11 +115,16 @@ void mainmenu_loop()
|
|||
break;
|
||||
case MAINMENU_REPLAY_INTRO:
|
||||
case MAINMENU_ATTRACT_MODE:
|
||||
#ifdef HELLFIRE
|
||||
if (gbActive)
|
||||
mainmenu_play_intro();
|
||||
#else
|
||||
#ifdef SPAWN
|
||||
done = FALSE;
|
||||
#else
|
||||
if (gbActive)
|
||||
mainmenu_play_intro();
|
||||
#endif
|
||||
#endif
|
||||
break;
|
||||
case MAINMENU_SHOW_CREDITS:
|
||||
|
|
@ -168,7 +173,6 @@ BOOL mainmenu_multi_player()
|
|||
return mainmenu_init_menu(SELHERO_CONNECT);
|
||||
}
|
||||
|
||||
#ifndef SPAWN
|
||||
void mainmenu_play_intro()
|
||||
{
|
||||
music_stop();
|
||||
|
|
@ -179,6 +183,5 @@ void mainmenu_play_intro()
|
|||
#endif
|
||||
mainmenu_refresh_music();
|
||||
}
|
||||
#endif
|
||||
|
||||
DEVILUTION_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -56,11 +56,15 @@ void mainmenu_Load(char *name, void (*fnSound)(char *file))
|
|||
SDL_Rect rect = { 17, (SCREEN_HEIGHT - 36), 605, 21 };
|
||||
vecMainMenuDialog.push_back(new UiArtText(name, rect, UIS_SMALL));
|
||||
|
||||
#ifndef HELLFIRE
|
||||
if (!gbSpawned) {
|
||||
#endif
|
||||
LoadBackgroundArt("ui_art\\mainmenu.pcx");
|
||||
#ifndef HELLFIRE
|
||||
} else {
|
||||
LoadBackgroundArt("ui_art\\swmmenu.pcx");
|
||||
}
|
||||
#endif
|
||||
|
||||
UiInitList(vecMenuItems.size(), NULL, UiMainMenuSelect, mainmenu_Esc, vecMainMenuDialog, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue