This commit is contained in:
GabsPuNs
2026-03-22 00:39:19 -04:00
parent bc7f5d1e5f
commit c53c70a909
2 changed files with 8 additions and 8 deletions

View File

@@ -333,10 +333,10 @@ void SoundEngine::updateMiniAudio()
/////////////////////////////////////////////
//
// pickGameModeMusicID
// getGameModeMusicID
//
/////////////////////////////////////////////
inline void SoundEngine::pickGameModeMusic(Minecraft* pMinecraft, unsigned int i)
inline void SoundEngine::getGameModeMusicID(Minecraft* pMinecraft, unsigned int i)
{
if (pMinecraft->localplayers[i] != nullptr && pMinecraft->localplayers[i]->abilities.instabuild && pMinecraft->localplayers[i]->abilities.mayfly)
m_musicID = getMusicID(eMusicType_Creative);
@@ -779,7 +779,7 @@ void SoundEngine::playStreaming(const wstring& name, float x, float y , float z,
}
else
{
pickGameModeMusic(pMinecraft, i);
getGameModeMusicID(pMinecraft, i);
}
}
else
@@ -1388,7 +1388,7 @@ void SoundEngine::playMusicUpdate()
else
{
// Set the end track
pickGameModeMusic(pMinecraft, i);
getGameModeMusicID(pMinecraft, i);
SetIsPlayingEndMusic(false);
SetIsPlayingNetherMusic(false);
}
@@ -1416,7 +1416,7 @@ void SoundEngine::playMusicUpdate()
else
{
// set the Nether track
pickGameModeMusic(pMinecraft, i);
getGameModeMusicID(pMinecraft, i);
SetIsPlayingNetherMusic(false);
SetIsPlayingEndMusic(false);
}
@@ -1424,7 +1424,7 @@ void SoundEngine::playMusicUpdate()
/* //This is setting the music in loop
else if ( !playerInEnd && !playerInNether )
{
pickGameModeMusic(pMinecraft, i);
getGameModeMusicID(pMinecraft, i);
}
*/
@@ -1517,7 +1517,7 @@ void SoundEngine::playMusicUpdate()
}
else
{
pickGameModeMusic(pMinecraft, i);
getGameModeMusicID(pMinecraft, i);
SetIsPlayingNetherMusic(false);
SetIsPlayingEndMusic(false);

View File

@@ -166,7 +166,7 @@ private:
int GetRandomishTrack(int iStart,int iEnd);
inline void pickGameModeMusic(Minecraft* pMinecraft, unsigned int i);
inline void getGameModeMusicID(Minecraft* pMinecraft, unsigned int i);
ma_engine m_engine;
ma_engine_config m_engineConfig;