mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-08 11:38:08 +03:00
Make DoTitle take the title of an ambient track by reference. Update DoLevel to do the same.
This commit is contained in:
parent
14f0b710fb
commit
b3443ba328
3 changed files with 6 additions and 6 deletions
|
@ -74,8 +74,8 @@ extern std::vector<short> OutsideRoomTable[OUTSIDE_SIZE][OUTSIDE_SIZE];
|
||||||
|
|
||||||
int DrawPhase();
|
int DrawPhase();
|
||||||
|
|
||||||
GAME_STATUS DoTitle(int index);
|
GAME_STATUS DoTitle(int index, std::string const & ambient);
|
||||||
GAME_STATUS DoLevel(int index, std::string ambient, bool loadFromSavegame);
|
GAME_STATUS DoLevel(int index, std::string const & ambient, bool loadFromSavegame);
|
||||||
GAME_STATUS ControlPhase(int numFrames, int demoMode);
|
GAME_STATUS ControlPhase(int numFrames, int demoMode);
|
||||||
|
|
||||||
int GetRandomControl();
|
int GetRandomControl();
|
||||||
|
|
|
@ -230,7 +230,7 @@ bool GameFlow::DoGameflow()
|
||||||
|
|
||||||
if (CurrentLevel == 0)
|
if (CurrentLevel == 0)
|
||||||
{
|
{
|
||||||
status = DoTitle(0);
|
status = DoTitle(0, level->AmbientTrack);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -450,7 +450,7 @@ unsigned CALLBACK GameMain(void *)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
GAME_STATUS DoTitle(int index)
|
GAME_STATUS DoTitle(int index, std::string const & ambient)
|
||||||
{
|
{
|
||||||
TENLog("DoTitle", LogLevel::Info);
|
TENLog("DoTitle", LogLevel::Info);
|
||||||
|
|
||||||
|
@ -499,7 +499,7 @@ GAME_STATUS DoTitle(int index)
|
||||||
UseSpotCam = true;
|
UseSpotCam = true;
|
||||||
|
|
||||||
// Play background music
|
// Play background music
|
||||||
PlaySoundTrack(83);
|
PlaySoundTrack(ambient);
|
||||||
|
|
||||||
// Initialize menu
|
// Initialize menu
|
||||||
g_Gui.SetMenuToDisplay(Menu::Title);
|
g_Gui.SetMenuToDisplay(Menu::Title);
|
||||||
|
@ -560,7 +560,7 @@ GAME_STATUS DoTitle(int index)
|
||||||
return GAME_STATUS::GAME_STATUS_NEW_GAME;
|
return GAME_STATUS::GAME_STATUS_NEW_GAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
GAME_STATUS DoLevel(int index, std::string ambient, bool loadFromSavegame)
|
GAME_STATUS DoLevel(int index, std::string const & ambient, bool loadFromSavegame)
|
||||||
{
|
{
|
||||||
// If not loading a savegame, then clear all the infos
|
// If not loading a savegame, then clear all the infos
|
||||||
if (!loadFromSavegame)
|
if (!loadFromSavegame)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue